1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2005-12-11 12:38:40 +00:00
parent e066a20b67
commit b8fd95a815

View file

@ -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;
}