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:
authorCampbell Barton <ideasman42@gmail.com>2014-12-29 23:37:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2014-12-30 00:13:15 +0300
commitd993bad5e7adc35ad984dec1bbf0a57d99000712 (patch)
tree1940539860711d3f1a5a689cb94d158153eff673 /source/blender/editors/sound/sound_ops.c
parent4748e3464221a6bdee8d036633f8b53f4279b3ff (diff)
Fix possible NULL pointer dereference
also remove redundant NULL check
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 2f5dc0ccdc4..1a34894e450 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -142,7 +142,7 @@ static int sound_open_exec(bContext *C, wmOperator *op)
RNA_property_update(C, &pprop->ptr, pprop->prop);
}
- if (op->customdata) MEM_freeN(op->customdata);
+ MEM_freeN(op->customdata);
return OPERATOR_FINISHED;
}