Commit 0ed16ceddb007d0b960a5859398546c937654bd3

Christian Rauch 2021-01-31T19:10:02

free 'outputs' in 'Wayland_DestroyWindow'

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index e20ed40..ab158d2 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -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);