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>2012-04-26 08:41:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-26 08:41:27 +0400
commit61015fbd8cf4c4ee70773a12e9463a7b7071ef20 (patch)
tree4eac3a280da638cb72e745f23ec0cc15dc878569
parentbd7d3c5e9db2af90b81b3506c616f66e72e85e03 (diff)
fix for memory leak in the knife tool
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 0ace06b1a1a..670b06887eb 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -2746,6 +2746,9 @@ static void knifetool_exit(bContext *C, wmOperator *op)
if (kcd->cagecos)
MEM_freeN(kcd->cagecos);
+ if (kcd->linehits)
+ MEM_freeN(kcd->linehits);
+
/* destroy kcd itself */
MEM_freeN(kcd);
op->customdata = NULL;