[Bf-blender-cvs] [f6de7a23143] greasepencil-object: GPencil: Fix memory leak

Antonio Vazquez noreply at git.blender.org
Wed Oct 2 15:43:22 CEST 2019


Commit: f6de7a23143362dac909b0d1bd5cf58172c93aff
Author: Antonio Vazquez
Date:   Wed Oct 2 11:19:09 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rBf6de7a23143362dac909b0d1bd5cf58172c93aff

GPencil: Fix memory leak

The return was breaking the memory free.

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

M	source/blender/editors/gpencil/gpencil_uv.c

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

diff --git a/source/blender/editors/gpencil/gpencil_uv.c b/source/blender/editors/gpencil/gpencil_uv.c
index f57e7137666..90bae1f917f 100644
--- a/source/blender/editors/gpencil/gpencil_uv.c
+++ b/source/blender/editors/gpencil/gpencil_uv.c
@@ -392,14 +392,7 @@ static bool gpencil_uv_transform_poll(bContext *C)
     return false;
   }
 
-  GP_EDITABLE_STROKES_BEGIN (gpstroke_iter, C, gpl, gps) {
-    if (gps->flag & GP_STROKE_SELECT) {
-      return true;
-    }
-  }
-  GP_EDITABLE_STROKES_END(gpstroke_iter);
-
-  return false;
+  return true;
 }
 
 static int gpencil_uv_transform_invoke(bContext *C, wmOperator *op, const wmEvent *event)



More information about the Bf-blender-cvs mailing list