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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-20 08:19:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-20 08:19:58 +0300
commita48df97ada85960de4fd0eeba61b32e260bf378c (patch)
treef7122e1358fa72269cd3fc307c7c2916dbc0359b
parentce3a6d7989387153911296e44ad00da3195f7299 (diff)
Fix T90791: Knife project leaks memory with curve/text cutter
-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 2e63e397628..669a09b3fd3 100644
--- a/source/blender/editors/mesh/editmesh_knife_project.c
+++ b/source/blender/editors/mesh/editmesh_knife_project.c
@@ -33,6 +33,7 @@
#include "BKE_customdata.h"
#include "BKE_editmesh.h"
#include "BKE_layer.h"
+#include "BKE_lib_id.h"
#include "BKE_mesh.h"
#include "BKE_mesh_runtime.h"
#include "BKE_object.h"
@@ -115,7 +116,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);
}
}