mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-25 06:53:40 +00:00
[client] fix invalid access on early termination
This commit is contained in:
parent
780bb248f7
commit
22238c3200
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user