Fix (unreported): Memory leak when adding strip in VSE

Using unsupported movie file when adding movie strip causes memory leak.

Pull Request: https://projects.blender.org/blender/blender/pulls/109078
This commit is contained in:
Iliya Katueshenock
2023-06-26 13:57:33 +02:00
committed by Richard Antalik
parent 9d5ab0a88f
commit d392a8f111

View File

@@ -972,6 +972,7 @@ static int sequencer_add_movie_strip_exec(bContext *C, wmOperator *op)
}
if (SEQ_collection_len(movie_strips) == 0) {
sequencer_add_cancel(C, op);
SEQ_collection_free(movie_strips);
return OPERATOR_CANCELLED;
}