Fix memory leak caused by unknown opeartor of keymap item

This commit is contained in:
Julian Eisel 2016-10-03 17:52:46 +02:00
parent b9e82b5bfb
commit 103fbb3afc
Notes: blender-bot 2023-02-14 07:29:18 +01:00
Referenced by issue #50340, Thread Dead-Loop with Edge-Split Modifier on certain meshes during scene_update_tagged_recursive
Referenced by issue #49746, Crash on Boot (bug is related to User Settings)
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ static void wm_keymap_item_properties_update_ot(wmKeyMapItem *kmi)
}
else {
/* zombie keymap item */
MEM_SAFE_FREE(kmi->ptr);
wm_keymap_item_free(kmi);
kmi->ptr = NULL;
}
}
}