[client] fix invalid access on early termination

This commit is contained in:
Geoffrey McRae
2019-05-30 20:24:51 +10:00
parent 780bb248f7
commit 22238c3200
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ KeybindHandle app_register_keybind(SDL_Scancode key, SuperEventFn callback, void
void app_release_keybind(KeybindHandle * handle)
{
if (!handle)
if (!*handle)
return;
state.bindings[(*handle)->key] = NULL;