close file descriptor

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30962 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Fred Bauer 2011-11-11 01:19:09 +00:00
parent 8317226ff8
commit 7c6acd4783

View file

@ -215,6 +215,7 @@ static void load_icons(const char* filename, enum Iconset iconset,
ic->handle_locked = 1;
size_read = read_bmp_fd(fd, &ic->bmp, buf_size, bmpformat, NULL);
close(fd);
ic->handle_locked = 0;
/* free unused alpha channel, if any */