fix [#33029] Applying modifier leaks memory
authorCampbell Barton <ideasman42@gmail.com>
Thu, 29 Nov 2012 16:26:39 +0000 (16:26 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 29 Nov 2012 16:26:39 +0000 (16:26 +0000)
commit07ccd3ee3f9700730a60013a66b09466af2585d3
tree5794ab3a7d76889f291dc1a3ecf00a2cbff9ef85
parentf1745706adcd2337fe183e30c1b026a05c198839
fix [#33029] Applying modifier leaks memory

Thanks for Sergey for finding the bug & patching, This fix works a bit differently.
Theres no need to allocate the customdata in the first place - since its written into. So add a flag for vert/edge/face/loop creation functions so they can skip customdata creation.
20 files changed:
source/blender/blenkernel/intern/modifiers_bmesh.c
source/blender/bmesh/intern/bmesh_construct.c
source/blender/bmesh/intern/bmesh_construct.h
source/blender/bmesh/intern/bmesh_core.c
source/blender/bmesh/intern/bmesh_core.h
source/blender/bmesh/intern/bmesh_mesh_conv.c
source/blender/bmesh/operators/bmo_create.c
source/blender/bmesh/operators/bmo_dupe.c
source/blender/bmesh/operators/bmo_extrude.c
source/blender/bmesh/operators/bmo_hull.c
source/blender/bmesh/operators/bmo_inset.c
source/blender/bmesh/operators/bmo_primitive.c
source/blender/bmesh/operators/bmo_removedoubles.c
source/blender/bmesh/operators/bmo_symmetrize.c
source/blender/bmesh/operators/bmo_utils.c
source/blender/bmesh/operators/bmo_wireframe.c
source/blender/bmesh/tools/bmesh_bevel.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/modifiers/intern/MOD_skin.c
source/blender/python/bmesh/bmesh_py_types.c