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
Notes: blender-bot 2023-02-13 22:19:23 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 0 deletions

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);