From fa3dd67b42adc12cc227bfd353a3f6469e82eaf6 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 15 Jun 2012 11:42:09 +0000 Subject: Fix potential memory leak in marker sliding operator --- source/blender/editors/space_clip/tracking_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index 7a36528dd3a..de2bf8241d7 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -581,7 +581,7 @@ static void *slide_marker_customdata(bContext *C, wmEvent *event) 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); -- cgit v1.2.3