Don't leak file descriptor.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30619 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-09-29 05:42:20 +00:00
parent 205ef12b9d
commit 1125c39ea8

View file

@ -557,6 +557,7 @@ int font_load(const char *path)
size = filesize(fd);
if (size > MAX_FONT_SIZE)
size = MAX_FONT_SIZE;
close(fd);
return font_load_ex(path, size);
}