diff options
author | Hans Goudey <h.goudey@me.com> | 2021-08-06 05:10:54 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-08-06 05:10:54 +0300 |
commit | 99738fbfdc8b4639d95c796bcc8711bd89c1aaa4 (patch) | |
tree | 56be355209a51fb940e49735982352c25be553eb /source/blender/blenkernel/intern | |
parent | 1f8485ae8222d4bcf6c71b8156bc61525cc5f391 (diff) |
Fix memory leak from rB263fa406cd2b
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_convert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c index fbcd916a0df..ca594470cba 100644 --- a/source/blender/blenkernel/intern/mesh_convert.c +++ b/source/blender/blenkernel/intern/mesh_convert.c @@ -1666,6 +1666,7 @@ void BKE_mesh_nomain_to_mesh(Mesh *mesh_src, /* skip the listbase */ MEMCPY_STRUCT_AFTER(mesh_dst, &tmp, id.prev); + BLI_freelistN(&mesh_dst->vertex_group_names); BKE_defgroup_copy_list(&mesh_dst->vertex_group_names, &mesh_src->vertex_group_names); mesh_dst->vertex_group_active_index = mesh_src->vertex_group_active_index; |