mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +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)
|
void app_release_keybind(KeybindHandle * handle)
|
||||||
{
|
{
|
||||||
if (!handle)
|
if (!*handle)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
state.bindings[(*handle)->key] = NULL;
|
state.bindings[(*handle)->key] = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user