diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-26 08:41:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-26 08:41:27 +0400 |
commit | 61015fbd8cf4c4ee70773a12e9463a7b7071ef20 (patch) | |
tree | 4eac3a280da638cb72e745f23ec0cc15dc878569 /source/blender/editors | |
parent | bd7d3c5e9db2af90b81b3506c616f66e72e85e03 (diff) |
fix for memory leak in the knife tool
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 3 |
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; |