Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-15 15:42:09 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-15 15:42:09 +0400
commitfa3dd67b42adc12cc227bfd353a3f6469e82eaf6 (patch)
treeef6d9c707420da85aba3ea620593900da31570be /source
parentbe3c12b75b18723c0598d2aeb5453849d8e3accb (diff)
Fix potential memory leak in marker sliding operator
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_clip/tracking_ops.c2
1 files changed, 1 insertions, 1 deletions
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);