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:
authorBastien Montagne <montagne29@wanadoo.fr>2017-06-15 13:32:27 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-06-15 13:32:27 +0300
commitb488988ab10a5f78d5cefe8346fc2fd2f1232d0f (patch)
tree64eb945d987c8d7538cdf284404e718a789f3d7c /source/blender/blenkernel
parent038b73bab1f6ed3aa2360e1f4946234110a5cf2c (diff)
Fix potential memory leak in Sequencer sound strip creation code.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index 757f639775b..dbdffa54d29 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -5183,6 +5183,7 @@ Sequence *BKE_sequencer_add_sound_strip(bContext *C, ListBase *seqbasep, SeqLoad
sound = BKE_sound_new_file(bmain, seq_load->path); /* handles relative paths */
if (sound->playback_handle == NULL) {
+ BKE_libblock_free(bmain, sound);
#if 0
if (op)
BKE_report(op->reports, RPT_ERROR, "Unsupported audio format");