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:
parent
e066a20b67
commit
b8fd95a815
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue