[Bf-blender-cvs] [5b6838129f0] master: Fix (unreported) memleak in Warp modifier copying.
Bastien Montagne
noreply at git.blender.org
Fri May 5 10:36:52 CEST 2017
Commit: 5b6838129f022102518b7cd8cabec3823c3749a8
Author: Bastien Montagne
Date: Fri May 5 10:36:23 2017 +0200
Branches: master
https://developer.blender.org/rB5b6838129f022102518b7cd8cabec3823c3749a8
Fix (unreported) memleak in Warp modifier copying.
===================================================================
M source/blender/modifiers/intern/MOD_warp.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c
index 92d44257d03..b340356467a 100644
--- a/source/blender/modifiers/intern/MOD_warp.c
+++ b/source/blender/modifiers/intern/MOD_warp.c
@@ -66,6 +66,10 @@ static void copyData(ModifierData *md, ModifierData *target)
WarpModifierData *wmd = (WarpModifierData *) md;
WarpModifierData *twmd = (WarpModifierData *) target;
+ if (twmd->curfalloff != NULL) {
+ curvemapping_free(twmd->curfalloff);
+ }
+
modifier_copyData_generic(md, target);
twmd->curfalloff = curvemapping_copy(wmd->curfalloff);
More information about the Bf-blender-cvs
mailing list