mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 17:58:13 +00:00
Fix refcounting in SDL_hid_exit
This commit is contained in:

committed by
Sam Lantinga

parent
97c71371f2
commit
5fc7a90a8b
@@ -1084,8 +1084,8 @@ int SDL_hid_exit(void)
|
|||||||
if (SDL_hidapi_refcount == 0) {
|
if (SDL_hidapi_refcount == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
--SDL_hidapi_refcount;
|
||||||
if (SDL_hidapi_refcount > 0) {
|
if (SDL_hidapi_refcount > 0) {
|
||||||
--SDL_hidapi_refcount;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SDL_hidapi_refcount = 0;
|
SDL_hidapi_refcount = 0;
|
||||||
|
Reference in New Issue
Block a user