Fix potential memory leak in Sequencer sound strip creation code.
This commit is contained in:
parent
038b73bab1
commit
b488988ab1
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue