mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T90791: Knife project leaks memory with curve/text cutter
This commit is contained in:
parent
1e736d8a95
commit
9eb62b99bc
1 changed files with 2 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "BKE_context.h"
|
||||
#include "BKE_curve.h"
|
||||
#include "BKE_editmesh.h"
|
||||
#include "BKE_lib_id.h"
|
||||
#include "BKE_mesh.h"
|
||||
#include "BKE_mesh_runtime.h"
|
||||
#include "BKE_object.h"
|
||||
|
|
@ -113,7 +114,7 @@ static LinkNode *knifeproject_poly_from_object(const bContext *C,
|
|||
BKE_nurbList_free(&nurbslist);
|
||||
|
||||
if (me_eval_needs_free) {
|
||||
BKE_mesh_free_data((struct Mesh *)me_eval);
|
||||
BKE_id_free(NULL, (ID *)me_eval);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue