From 3ee2ed3049b9860c03084876bd96641b2f1cf5f4 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 8 Jan 2018 14:10:50 +0100 Subject: Fix T53612: Blender crashes on CleanTracks with 'DELETE_SEGMENTS' and a disabled marker Simple fix, which is totally safe for 2.79a! --- source/blender/editors/space_clip/tracking_ops.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/space_clip/tracking_ops.c') diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index db891dba294..2ec4f96931f 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -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); -- cgit v1.2.3