Skip to content
Snippets Groups Projects
Commit 9db56e4b authored by Campbell Barton's avatar Campbell Barton Committed by Jeroen Bakker
Browse files

Fix memory leak in object.mode_set_with_submode

parent ec0a3ff4
Branches
No related merge requests found
...@@ -2521,6 +2521,7 @@ bool EDBM_selectmode_set_multi(bContext *C, const short selectmode) ...@@ -2521,6 +2521,7 @@ bool EDBM_selectmode_set_multi(bContext *C, const short selectmode)
changed = true; changed = true;
} }
} }
MEM_freeN(objects);
if (changed) { if (changed) {
WM_main_add_notifier(NC_SCENE | ND_TOOLSETTINGS, NULL); WM_main_add_notifier(NC_SCENE | ND_TOOLSETTINGS, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment