diff options
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 812e958dea3..c15323186ac 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -2062,6 +2062,10 @@ static void bpy_bmesh_dealloc(BPy_BMesh *self) bm->py_handle = NULL; } + if (self->py_owns) { + BM_mesh_free(bm); + } + PyObject_DEL(self); } |