Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-03-15 20:19:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-03-15 20:19:53 +0300
commit02295c491f610834463f64181768cd12ecfe1278 (patch)
tree290fb50620aad17399a5f607ef639b0984581de5 /source/blender/python
parent435a49dfe7c5f6933c7e07cb06154dfcabeaf09e (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.c6
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;
}