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:
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/python/api2_2x/NMesh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c
index f08882ebcc1..7862330f425 100644
--- a/source/blender/python/api2_2x/NMesh.c
+++ b/source/blender/python/api2_2x/NMesh.c
@@ -2064,6 +2064,8 @@ static int unlink_existingMeshData( Mesh * mesh )
EXPP_unlink_mesh( mesh );
if( mesh->mvert )
MEM_freeN( mesh->mvert );
+ if( mesh->medge )
+ MEM_freeN( mesh->medge );
if( mesh->mface )
MEM_freeN( mesh->mface );
if( mesh->mcol )
@@ -2171,6 +2173,7 @@ static int convert_NMeshToMesh( Mesh * mesh, BPy_NMesh * nmesh )
int i, j;
mesh->mvert = NULL;
+ mesh->medge = NULL;
mesh->mface = NULL;
mesh->mcol = NULL;
mesh->msticky = NULL;