Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker

Simple fix, which is totally safe for 2.79a!
This commit is contained in:
Sergey Sharybin 2018-01-08 14:10:50 +01:00
parent 96e507d989
commit 3ee2ed3049
Notes: blender-bot 2023-02-14 06:18:31 +01:00
Referenced by issue #53683, 2.79a release
Referenced by issue #53612, Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker
1 changed files with 4 additions and 0 deletions

View File

@ -1858,6 +1858,10 @@ static bool is_track_clean(MovieTrackingTrack *track, int frames, int del)
}
}
if (count == 0) {
ok = 0;
}
if (del) {
MEM_freeN(track->markers);