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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-20 08:19:58 +0300
committerJeroen Bakker <jeroen@blender.org>2021-08-23 10:06:44 +0300
commit9eb62b99bc0ac3ccce9fb227c8f3c5d0d66fb975 (patch)
treed82c9b2cf8b97ee4b3ac6e1a78f02816a37d1a47 /source
parent1e736d8a95b2e96e4a4f072f75711ab9522ea0e7 (diff)
Fix T90791: Knife project leaks memory with curve/text cutter
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_knife_project.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife_project.c b/source/blender/editors/mesh/editmesh_knife_project.c
index cebc2a445aa..c1213cca047 100644
--- a/source/blender/editors/mesh/editmesh_knife_project.c
+++ b/source/blender/editors/mesh/editmesh_knife_project.c
@@ -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);
}
}