fix NULL frame_callback access

This commit is contained in:
Christian Rauch authored and Ryan C. Gordon committed 2021-05-02 14:07:40 -04:00
1 parent 424bbaec06
commit 006378b921
1 file changed
+3 -1
+3 -1
View File
@@ -1223,7 +1223,9 @@ void Wayland_DestroyWindow(_THIS, SDL_Window *window)
SDL_free(wind->outputs);
wl_callback_destroy(wind->frame_callback);
if (wind->frame_callback) {
wl_callback_destroy(wind->frame_callback);
}
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
if (wind->extended_surface) {