From 2f13f66c71d11115381ea6bbdece4bcdec252584 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 16 Mar 2024 17:59:36 +0100 Subject: [PATCH] testautomation: fix renderer leak in video tests --- test/testautomation_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testautomation_video.c b/test/testautomation_video.c index dc9daa26e7..8cd7212e39 100644 --- a/test/testautomation_video.c +++ b/test/testautomation_video.c @@ -55,6 +55,7 @@ static SDL_Window *createVideoSuiteTestWindow(const char *title) * so delay to give the window time to actually appear on the desktop. */ SDL_Delay(100); + SDL_DestroyRenderer(renderer); } else { SDLTest_Log("Unable to create a renderer, some tests may fail on Wayland/XWayland"); } @@ -1786,6 +1787,7 @@ static int video_setWindowCenteredOnDisplay(void *arg) * so delay to give the window time to actually appear on the desktop. */ SDL_Delay(100); + SDL_DestroyRenderer(renderer); } else { SDLTest_Log("Unable to create a renderer, tests may fail under Wayland"); }