diff --git a/test/testdialog.c b/test/testdialog.c index 333ebb503f..e5492eb663 100644 --- a/test/testdialog.c +++ b/test/testdialog.c @@ -152,9 +152,9 @@ int main(int argc, char *argv[]) { SDL_RenderPresent(r); } + SDLTest_CleanupTextDrawing(); SDL_DestroyRenderer(r); SDL_DestroyWindow(w); - SDLTest_CleanupTextDrawing(); SDL_Quit(); SDLTest_CommonDestroyState(state); return 0;