mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-25 07:22:00 +00:00
wayland: Destroy proxy wrappers before and callbacks before event queues
Destroy any proxy wrappers and callbacks before the associated event queues to silence libwayland warnings about destroying the queues while proxies are still attached.
This commit is contained in:
parent
bbdde648d8
commit
bad4f4e5ac
1 changed files with 2 additions and 2 deletions
|
|
@ -2278,9 +2278,9 @@ void Wayland_DestroyWindow(_THIS, SDL_Window *window)
|
|||
SDL_free(wind->outputs);
|
||||
|
||||
if (wind->gles_swap_frame_callback) {
|
||||
WAYLAND_wl_event_queue_destroy(wind->gles_swap_frame_event_queue);
|
||||
WAYLAND_wl_proxy_wrapper_destroy(wind->gles_swap_frame_surface_wrapper);
|
||||
wl_callback_destroy(wind->gles_swap_frame_callback);
|
||||
WAYLAND_wl_proxy_wrapper_destroy(wind->gles_swap_frame_surface_wrapper);
|
||||
WAYLAND_wl_event_queue_destroy(wind->gles_swap_frame_event_queue);
|
||||
}
|
||||
|
||||
if (wind->surface_frame_callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue