Fix potential memory leak in Sequencer sound strip creation code.
This commit is contained in:
@@ -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 */
|
sound = BKE_sound_new_file(bmain, seq_load->path); /* handles relative paths */
|
||||||
|
|
||||||
if (sound->playback_handle == NULL) {
|
if (sound->playback_handle == NULL) {
|
||||||
|
BKE_libblock_free(bmain, sound);
|
||||||
#if 0
|
#if 0
|
||||||
if (op)
|
if (op)
|
||||||
BKE_report(op->reports, RPT_ERROR, "Unsupported audio format");
|
BKE_report(op->reports, RPT_ERROR, "Unsupported audio format");
|
||||||
|
Reference in New Issue
Block a user