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:
authorRichard Antalik <richardantalik@gmail.com>2019-06-21 02:06:01 +0300
committerRichard Antalik <richardantalik@gmail.com>2019-06-21 02:06:29 +0300
commit1e050bd08e408a45435000a1057a3524a78e2ac4 (patch)
tree55eef253af31a5b20e7643114e47a2c4df4c0af0 /source/blender/editors/space_sequencer
parent197661c7334dee389ee625fc4cf251b7b91e27d2 (diff)
Fix T65975: Memory leak adding movie sequence strip
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D5106
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_add.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c
index 525874c5939..b24f8e8d00f 100644
--- a/source/blender/editors/space_sequencer/sequencer_add.c
+++ b/source/blender/editors/space_sequencer/sequencer_add.c
@@ -625,13 +625,14 @@ static int sequencer_add_generic_strip_exec(bContext *C, wmOperator *op, SeqLoad
}
}
+ 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;
- }
- if (op->customdata) {
- MEM_freeN(op->customdata);
+ return OPERATOR_CANCELLED;
}
BKE_sequencer_sort(scene);