Revision: 41619
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41619
Author:   campbellbarton
Date:     2011-11-07 15:41:20 +0000 (Mon, 07 Nov 2011)
Log Message:
-----------
fix for error using freed memory

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_clip/tracking_ops.c

Modified: trunk/blender/source/blender/editors/space_clip/tracking_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/tracking_ops.c      
2011-11-07 15:32:32 UTC (rev 41618)
+++ trunk/blender/source/blender/editors/space_clip/tracking_ops.c      
2011-11-07 15:41:20 UTC (rev 41619)
@@ -2873,10 +2873,11 @@
 
                                        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;
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to