Fix potential memory leak in Sequencer sound strip creation code.

This commit is contained in:
Bastien Montagne 2017-06-15 12:32:27 +02:00
parent 038b73bab1
commit b488988ab1
1 changed files with 1 additions and 0 deletions

View File

@ -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");