free 'outputs' in 'Wayland_DestroyWindow'

main
Christian Rauch 2021-01-31 19:10:02 -08:00
parent a44678465f
commit 0ed16ceddb
1 changed files with 2 additions and 0 deletions

View File

@ -1021,6 +1021,8 @@ void Wayland_DestroyWindow(_THIS, SDL_Window *window)
}
}
SDL_free(wind->outputs);
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
if (wind->extended_surface) {
QtExtendedSurface_Unsubscribe(wind->extended_surface, SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION);