mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
testautomation: fix renderer leak in video tests
This commit is contained in:

committed by
Sam Lantinga

parent
9ccde0def4
commit
2f13f66c71
@@ -55,6 +55,7 @@ static SDL_Window *createVideoSuiteTestWindow(const char *title)
|
|||||||
* so delay to give the window time to actually appear on the desktop.
|
* so delay to give the window time to actually appear on the desktop.
|
||||||
*/
|
*/
|
||||||
SDL_Delay(100);
|
SDL_Delay(100);
|
||||||
|
SDL_DestroyRenderer(renderer);
|
||||||
} else {
|
} else {
|
||||||
SDLTest_Log("Unable to create a renderer, some tests may fail on Wayland/XWayland");
|
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.
|
* so delay to give the window time to actually appear on the desktop.
|
||||||
*/
|
*/
|
||||||
SDL_Delay(100);
|
SDL_Delay(100);
|
||||||
|
SDL_DestroyRenderer(renderer);
|
||||||
} else {
|
} else {
|
||||||
SDLTest_Log("Unable to create a renderer, tests may fail under Wayland");
|
SDLTest_Log("Unable to create a renderer, tests may fail under Wayland");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user