forked from bartvdbraak/blender
fix for memory leak in the knife tool
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user