fix for memory leak in the knife tool

This commit is contained in:
Campbell Barton 2012-04-26 04:41:27 +00:00
parent bd7d3c5e9d
commit 61015fbd8c

@ -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;