[Bf-blender-cvs] [cfd176b] master: MEM_SAFE_FREE caused issues /w const & GCC5
Campbell Barton
noreply at git.blender.org
Fri Feb 27 05:28:16 CET 2015
Commit: cfd176bcb1d692ebd9e02a8c23ce59680862d43b
Author: Campbell Barton
Date: Fri Feb 27 15:26:22 2015 +1100
Branches: master
https://developer.blender.org/rBcfd176bcb1d692ebd9e02a8c23ce59680862d43b
MEM_SAFE_FREE caused issues /w const & GCC5
===================================================================
M source/blender/editors/mesh/editmesh_knife.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index b6b5dfd..b07d9c0 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -2882,7 +2882,10 @@ static void knifetool_free_bmbvh(KnifeTool_OpData *kcd)
kcd->bmbvh = NULL;
}
- MEM_SAFE_FREE(kcd->cagecos);
+ if (kcd->cagecos) {
+ MEM_freeN((void *)kcd->cagecos);
+ kcd->cagecos = NULL;
+ }
}
/* called when modal loop selection gets set up... */
More information about the Bf-blender-cvs
mailing list