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 committed by Sergey Sharybin
parent 4640bf890e
commit 4d14bd10c0
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;
}
}
}