diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-15 20:19:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-15 20:19:53 +0300 |
commit | 02295c491f610834463f64181768cd12ecfe1278 (patch) | |
tree | 290fb50620aad17399a5f607ef639b0984581de5 /source/blender/python | |
parent | 435a49dfe7c5f6933c7e07cb06154dfcabeaf09e (diff) |
forgot to free memory for python api mesh.getTangents()
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index e070793f6cf..f9a23ed37b2 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -7660,8 +7660,10 @@ static PyObject *Mesh_getTangents( BPy_Mesh * self ) PyList_SetItem( py_tanlist, i, py_tuple ); } - if (orco) - MEM_freeN( orco ); + + BLI_memarena_free(arena); + if (orco) MEM_freeN( orco ); + MEM_freeN( vtangents ); return py_tanlist; } |