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 committed by Bastien Montagne
parent 0c365472b6
commit a1d05ac2a1
1 changed files with 4 additions and 0 deletions

View File

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