summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-06-21 20:18:52 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-06-21 20:18:52 +0000
commit36eeecf69b3b0c20319e61dff2cd4cc02de9fd2c (patch)
tree84ad8ce832ac8b593edf94c967e1d200607619cc
parente1d8a3dc63391098f9381a3cb33d73e69b46c006 (diff)
Allow UI fonts to be unloaded (needed for FS#11428)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27027 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index f1584713ed..b4cead79d9 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -449,7 +449,7 @@ int font_load(struct font* pf, const char *path)
void font_unload(int font_id)
{
struct font* pf = sysfonts[font_id];
- if (font_id >= SYSTEMFONTCOUNT && pf)
+ if (font_id && pf)
{
if (pf->fd >= 0)
close(pf->fd);