diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-03-24 02:54:48 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-03-24 02:54:48 +0300 |
commit | 4b2f0225bfd6e10cb485a935f372166334846483 (patch) | |
tree | 85673e55a186c65711308d13332d9ed1e6d6c6de /source/blender | |
parent | 391ae8f7ac4d91d81c82640f5efe7b031275d9f1 (diff) |
Fix problem with possibly random calls to MEM_freeN() due to uninitialized
variable in NMesh.c
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index 8c660a77873..c9ce0c0abe4 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -2550,13 +2550,11 @@ static PyObject *M_NMesh_GetRawFromObject( PyObject * self, PyObject * args ) break; case OB_MESH: { - int needsFree; DerivedMesh *dm = mesh_create_derived_render( ob ); DispListMesh *dlm = dm->convertToDispListMesh(dm, 1); - nmesh = new_NMesh_internal(ob->data, dlm ); + nmesh = new_NMesh_internal( ob->data, dlm ); displistmesh_free(dlm); - if (needsFree) - dm->release(dm); + dm->release(dm); } break; default: |