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:
parent
205ef12b9d
commit
1125c39ea8
1 changed files with 1 additions and 0 deletions
|
@ -557,6 +557,7 @@ int font_load(const char *path)
|
||||||
size = filesize(fd);
|
size = filesize(fd);
|
||||||
if (size > MAX_FONT_SIZE)
|
if (size > MAX_FONT_SIZE)
|
||||||
size = MAX_FONT_SIZE;
|
size = MAX_FONT_SIZE;
|
||||||
|
close(fd);
|
||||||
return font_load_ex(path, size);
|
return font_load_ex(path, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue