summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/font.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 77cf66c737..7dbc5a258a 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -348,12 +348,16 @@ static bool internal_load_font(struct font* pf, const char *path,
348 if (!font_load_header(pf)) 348 if (!font_load_header(pf))
349 { 349 {
350 DEBUGF("Failed font header load"); 350 DEBUGF("Failed font header load");
351 close(pf->fd);
352 pf->fd = -1;
351 return false; 353 return false;
352 } 354 }
353 355
354 if (!font_load_cached(pf)) 356 if (!font_load_cached(pf))
355 { 357 {
356 DEBUGF("Failed font cache load"); 358 DEBUGF("Failed font cache load");
359 close(pf->fd);
360 pf->fd = -1;
357 return false; 361 return false;
358 } 362 }
359 363