From 566d14293849e74910e0c793784fcc67cb355122 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Fri, 19 Apr 2024 12:19:10 -0400 Subject: [PATCH] tests: Clean up the renderer in the video test suite since it isn't automatic anymore. --- test/testautomation_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/testautomation_video.c b/test/testautomation_video.c index c7423124b..8d4ce0fa0 100644 --- a/test/testautomation_video.c +++ b/test/testautomation_video.c @@ -75,6 +75,10 @@ static SDL_Window *createVideoSuiteTestWindow(const char *title) static void destroyVideoSuiteTestWindow(SDL_Window *window) { if (window != NULL) { + SDL_Renderer *renderer = SDL_GetRenderer(window); + if (renderer) { + SDL_DestroyRenderer(renderer); + } SDL_DestroyWindow(window); window = NULL; SDLTest_AssertPass("Call to SDL_DestroyWindow()");