Fix #127731: Sculpt crash on Extract Face Set usage

This is due to function mismatch. Use CPP style `MEM_delete` to fix
the crash.

Pull Request: https://projects.blender.org/blender/blender/pulls/127732
This commit is contained in:
dupoxy
2024-09-18 13:01:01 +02:00
committed by Pratik Borhade
parent eb44c39824
commit 5fe32f351a

View File

@@ -194,7 +194,7 @@ static int geometry_extract_apply(bContext *C,
new_mesh->attributes_for_write().remove(".sculpt_mask");
BKE_editmesh_free_data(em);
MEM_freeN(em);
MEM_delete(em);
if (new_mesh->verts_num == 0) {
BKE_id_free(bmain, new_mesh);