summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-12-11 12:38:40 +0000
committerDave Chapman <dave@dchapman.com>2005-12-11 12:38:40 +0000
commitb8fd95a815f38864deba79585fcc5a1995dfd1d8 (patch)
tree6b193daa8e9a2f3aa728f34a96c3343b9fd3bb5d
parente066a20b6722fc7a2948e92751a6709706f43525 (diff)
Fix bug spotted by Alexander Spyridakis - ensure file descriptor is closed before exiting plugin with an grayscale lib error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8220 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/jpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index f9dcf2a63d..fee24d1082 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -1829,6 +1829,7 @@ int main(char* filename)
if (grayscales < 33 || buf_size <= 0)
{
rb->splash(HZ*2, true, "gray buf error");
+ rb->close(fd);
return PLUGIN_ERROR;
}