diff options
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index aab7188c069..e5bf053aa1c 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -2873,10 +2873,11 @@ static int clean_tracks_exec(bContext *C, wmOperator *op) BKE_tracking_free_track(track); BLI_freelinkN(&clip->tracking.tracks, track); + track= NULL; } /* happens when all tracking segments are not long enough */ - if(track->markersnr==0) { + if(track && track->markersnr==0) { if(track==act_track) clip->tracking.act_track= NULL; |