[Bf-blender-cvs] [53ff09b] blender-v2.78-release: GPencil: Fix memory leak using stroke arrange OP
Julian Eisel
noreply at git.blender.org
Thu Sep 22 15:04:08 CEST 2016
Commit: 53ff09bc97578cf19e307f24c17cd82ac7821fbc
Author: Julian Eisel
Date: Sun Sep 18 17:25:12 2016 +0200
Branches: blender-v2.78-release
https://developer.blender.org/rB53ff09bc97578cf19e307f24c17cd82ac7821fbc
GPencil: Fix memory leak using stroke arrange OP
===================================================================
M source/blender/editors/gpencil/gpencil_data.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 9560ab1..01d388b 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -815,6 +815,8 @@ static int gp_stroke_arrange_exec(bContext *C, wmOperator *op)
BLI_assert(0);
break;
}
+ BLI_freelistN(&selected);
+
/* notifiers */
WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
More information about the Bf-blender-cvs
mailing list