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:
Stepan Moskovchenko 2008-01-02 06:40:15 +00:00
parent 59acdc336b
commit 0f8c77b306

View file

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