[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

@ -1 +1 @@
B1-rc4-0-g026bdb00f2+1
B1-rc5-0-g780bb248f7+1

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;