From 0df12d223c322a508aa72a781be4e80f58538f70 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 26 Apr 2024 19:32:20 -0700
Subject: [PATCH] Fixed crash cleaning up text
Text needs to be cleaned up before the renderer is freed.
---
test/testdialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testdialog.c b/test/testdialog.c
index 333ebb503f61a..e5492eb663354 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;