SDL_ttf: Clean up the font and uninitialize SDL_ttf at shutdown

From 010cf70736f66151ddb21cad5bb8de9860234908 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 1 Feb 2025 10:06:49 -0800
Subject: [PATCH] Clean up the font and uninitialize SDL_ttf at shutdown

---
 examples/testgputext.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/testgputext.c b/examples/testgputext.c
index 075ad1ab..b870da6e 100644
--- a/examples/testgputext.c
+++ b/examples/testgputext.c
@@ -471,6 +471,8 @@ int main(int argc, char *argv[])
     SDL_free(geometry_data.indices);
     TTF_DestroyText(text);
     TTF_DestroyGPUTextEngine(engine);
+    TTF_CloseFont(font);
+    TTF_Quit();
     free_context(&context);
     SDL_Quit();