aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-23 22:12:26 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-23 22:12:26 -0500
commitedfe8f1452115a94b2371daf7c150f7a6ac2a2f0 (patch)
tree08ccc09f7f4dd4d1b26dd91ad8bf7f22a1aa78c0
parent093cb6f9acb50e5b385e596861c549a9415ca741 (diff)
downloadvolute-edfe8f1452115a94b2371daf7c150f7a6ac2a2f0.zip
free font on exit
-rw-r--r--renderer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/renderer.c b/renderer.c
index cf9e6d8..7de6793 100644
--- a/renderer.c
+++ b/renderer.c
@@ -121,6 +121,8 @@ static void
handle_event(SDL_Event e, mu_Context *ctx) {
switch (e.type) {
case SDL_QUIT: {
+ TTF_CloseFont(ctx->style->font);
+ TTF_Quit();
SDL_Quit();
exit(EXIT_SUCCESS);
}