Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-06-03 11:28:47 +0400
committerMatt Ebb <matt@mke3.net>2010-06-03 11:28:47 +0400
commit1b517c0926a3f3ab81bf2c1392229bc6b70fecd4 (patch)
tree4fb6664cb6755acbb47de9b4d5eabf7892f9754d /source/blender/editors/sound/sound_ops.c
parent21d112c36f661f3ce8648f4eadfe1325929e9184 (diff)
Small memory management tweaks
Diffstat (limited to 'source/blender/editors/sound/sound_ops.c')
-rw-r--r--source/blender/editors/sound/sound_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index be4f6ff0570..8f195b819ea 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -118,7 +118,7 @@ static int open_exec(bContext *C, wmOperator *op)
RNA_property_update(C, &pprop->ptr, pprop->prop);
}
- MEM_freeN(op->customdata);
+ if(op->customdata) MEM_freeN(op->customdata);
return OPERATOR_FINISHED;
}