forked from bartvdbraak/blender
Fix T65975: Memory leak adding movie sequence strip
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D5106
This commit is contained in:
parent
197661c733
commit
1e050bd08e
@ -625,15 +625,16 @@ static int sequencer_add_generic_strip_exec(bContext *C, wmOperator *op, SeqLoad
|
||||
}
|
||||
}
|
||||
|
||||
if (seq_load.tot_success == 0) {
|
||||
BKE_reportf(op->reports, RPT_ERROR, "File '%s' could not be loaded", seq_load.path);
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
if (op->customdata) {
|
||||
MEM_freeN(op->customdata);
|
||||
}
|
||||
|
||||
if (seq_load.tot_success == 0) {
|
||||
BKE_reportf(op->reports, RPT_ERROR, "File '%s' could not be loaded", seq_load.path);
|
||||
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
BKE_sequencer_sort(scene);
|
||||
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_SEQUENCER_STRIPS);
|
||||
|
Loading…
Reference in New Issue
Block a user