summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/font.c b/src/client/font.c
index 731e86d..b64785e 100644
--- a/src/client/font.c
+++ b/src/client/font.c
@@ -52,6 +52,7 @@ void font_init()
fontconfig_quit();
if (TTF_Init() == -1) {
+ free(font_file);
fprintf(stderr, "%s\n", SDL_GetError());
return;
}
@@ -63,6 +64,7 @@ void font_init()
DEBUG_MSG(_("Loading font: \"%s\"\n"), font_file);
+ free(font_file);
isFontInit = TRUE;
}