fix for WM_keymap_remove_item() writing to freed memory.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 4 Dec 2012 12:41:59 +0000 (12:41 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 4 Dec 2012 12:41:59 +0000 (12:41 +0000)
source/blender/windowmanager/intern/wm_keymap.c

index 4fe1e3b64abcc1bde14972acdacb7d4f7eada950..3739462ac2cc20eef2b26ff86b29d1135b5c6a55 100644 (file)
@@ -392,7 +392,7 @@ int WM_keymap_remove_item(wmKeyMap *keymap, wmKeyMapItem *kmi)
                }
                BLI_freelinkN(&keymap->items, kmi);
 
-               WM_keyconfig_update_tag(keymap, kmi);
+               WM_keyconfig_update_tag(keymap, NULL);
                return TRUE;
        }
        else {