mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-02 07:58:30 +00:00
fix NULL frame_callback access
This commit is contained in:

committed by
Ryan C. Gordon

parent
424bbaec06
commit
006378b921
@@ -1223,7 +1223,9 @@ void Wayland_DestroyWindow(_THIS, SDL_Window *window)
|
|||||||
|
|
||||||
SDL_free(wind->outputs);
|
SDL_free(wind->outputs);
|
||||||
|
|
||||||
|
if (wind->frame_callback) {
|
||||||
wl_callback_destroy(wind->frame_callback);
|
wl_callback_destroy(wind->frame_callback);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
|
||||||
if (wind->extended_surface) {
|
if (wind->extended_surface) {
|
||||||
|
Reference in New Issue
Block a user