Fix #125074: MEM_new/MEM_freeN mismatch in selection pick code

This is due to the pointer free mismatch.

Pull Request: https://projects.blender.org/blender/blender/pulls/125163
This commit is contained in:
Pratik Borhade
2024-07-23 00:16:57 +02:00
committed by Jesse Yurkovich
parent 9f61ef74e7
commit 0fe0c04d2a

View File

@@ -2661,7 +2661,7 @@ static bool ed_object_select_pick(bContext *C,
/* Let the menu handle any further actions. */
if (has_menu) {
if (gpu != nullptr) {
MEM_freeN(gpu);
MEM_delete(gpu);
}
return false;
}