diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-07 19:41:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-07 19:41:20 +0400 |
commit | 0b82cef03f8691f3456b3de29e5d940f49ca5955 (patch) | |
tree | b10d033974e77a8ca7bd218ea25a5b717102d08c | |
parent | a3e5bd02bbf9883953ccc423726e5b5c0ee5aac0 (diff) |
fix for error using freed memory
-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; |