Fix memory leak in object.mode_set_with_submode

This commit is contained in:
Campbell Barton
2021-05-06 15:09:49 +10:00
parent 0499dbc5c1
commit e83a8e9083

View File

@@ -2547,6 +2547,7 @@ bool EDBM_selectmode_set_multi(bContext *C, const short selectmode)
changed = true;
}
}
MEM_freeN(objects);
if (changed) {
WM_main_add_notifier(NC_SCENE | ND_TOOLSETTINGS, NULL);