mirror of
https://github.com/encounter/SDL.git
synced 2025-12-14 23:56:19 +00:00
linux: (de)initialize d-bus at init and quit.
Previously we had different subsystems quitting it, in conflict, and risked multiple threads racing to init it at the same time. Fixes #3643.
This commit is contained in:
@@ -575,12 +575,6 @@ Wayland_VideoQuit(_THIS)
|
||||
|
||||
Wayland_QuitKeyboard(_this);
|
||||
|
||||
/* !!! FIXME: other subsystems use D-Bus, so we shouldn't quit it here;
|
||||
have SDL.c do this at a higher level, or add refcounting. */
|
||||
#if SDL_USE_LIBDBUS
|
||||
SDL_DBus_Quit();
|
||||
#endif
|
||||
|
||||
SDL_free(data->classname);
|
||||
}
|
||||
|
||||
|
||||
@@ -457,12 +457,6 @@ X11_VideoQuit(_THIS)
|
||||
X11_QuitKeyboard(_this);
|
||||
X11_QuitMouse(_this);
|
||||
X11_QuitTouch(_this);
|
||||
|
||||
/* !!! FIXME: other subsystems use D-Bus, so we shouldn't quit it here;
|
||||
have SDL.c do this at a higher level, or add refcounting. */
|
||||
#if SDL_USE_LIBDBUS
|
||||
SDL_DBus_Quit();
|
||||
#endif
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
|
||||
Reference in New Issue
Block a user