MIDI player: fix a very unlikely (but possible) file descriptor leak.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15986 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
59acdc336b
commit
0f8c77b306
1 changed files with 2 additions and 1 deletions
|
@ -95,9 +95,10 @@ struct MIDIfile * loadFile(char * filename)
|
|||
{
|
||||
if(mfload->numTracks != track)
|
||||
{
|
||||
printf("Error: file claims to have %d tracks. I only see %d here.", mfload->numTracks, track);
|
||||
printf("Warning: file claims to have %d tracks. I only see %d here.", mfload->numTracks, track);
|
||||
mfload->numTracks = track;
|
||||
}
|
||||
rb->close(file);
|
||||
return mfload;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue