[Bf-blender-cvs] [840cce840e0] master: Tracking: Fix crash when tracking failed

Sergey Sharybin noreply at git.blender.org
Sat Sep 23 13:18:44 CEST 2017


Commit: 840cce840e00cbd722feae585963eb4e01bc3033
Author: Sergey Sharybin
Date:   Sat Sep 23 16:07:32 2017 +0500
Branches: master
https://developer.blender.org/rB840cce840e00cbd722feae585963eb4e01bc3033

Tracking: Fix crash when tracking failed

Was a dangling pointer to a freed memory left behind.

===================================================================

M	source/blender/editors/space_clip/tracking_ops_track.c

===================================================================

diff --git a/source/blender/editors/space_clip/tracking_ops_track.c b/source/blender/editors/space_clip/tracking_ops_track.c
index 42b017e6324..83462a85be3 100644
--- a/source/blender/editors/space_clip/tracking_ops_track.c
+++ b/source/blender/editors/space_clip/tracking_ops_track.c
@@ -310,6 +310,7 @@ static void track_markers_endjob(void *tmv)
 static void track_markers_freejob(void *tmv)
 {
 	TrackMarkersJob *tmj = (TrackMarkersJob *)tmv;
+	tmj->clip->tracking_context = NULL;
 	BKE_autotrack_context_free(tmj->context);
 	MEM_freeN(tmj);
 }



More information about the Bf-blender-cvs mailing list