[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47946] trunk/blender/source/blender/ editors/space_clip/tracking_ops.c: Fix potential memory leak in marker sliding operator

Sergey Sharybin sergey.vfx at gmail.com
Fri Jun 15 13:42:10 CEST 2012


Revision: 47946
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47946
Author:   nazgul
Date:     2012-06-15 11:42:09 +0000 (Fri, 15 Jun 2012)
Log Message:
-----------
Fix potential memory leak in marker sliding operator

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	2012-06-15 11:40:04 UTC (rev 47945)
+++ trunk/blender/source/blender/editors/space_clip/tracking_ops.c	2012-06-15 11:42:09 UTC (rev 47946)
@@ -581,7 +581,7 @@
 						                                      SLIDE_ACTION_POS, width, height);
 				}
 
-				if (sc->flag & SC_SHOW_MARKER_SEARCH) {
+				if (!customdata && (sc->flag & SC_SHOW_MARKER_SEARCH)) {
 					if (mouse_on_corner(sc, marker, TRACK_AREA_SEARCH, co, 1, width, height)) {
 						customdata = create_slide_marker_data(sc, track, marker, event, TRACK_AREA_SEARCH, 0,
 						                                      SLIDE_ACTION_OFFSET, width, height);




More information about the Bf-blender-cvs mailing list