diff options
author | Stepan Moskovchenko <stevenm@rockbox.org> | 2008-01-02 06:40:15 +0000 |
---|---|---|
committer | Stepan Moskovchenko <stevenm@rockbox.org> | 2008-01-02 06:40:15 +0000 |
commit | 0f8c77b306fbc5d27803a3062cdd1a65a573c325 (patch) | |
tree | 682e4270b9582e3fa9ac363dbf74d4592d087ac9 | |
parent | 59acdc336b4e7856b32c374f8caec2d5b5b6fa74 (diff) |
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
-rw-r--r-- | apps/plugins/midi/midifile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/midi/midifile.c b/apps/plugins/midi/midifile.c index d4dcab47ef..ac3206ca65 100644 --- a/apps/plugins/midi/midifile.c +++ b/apps/plugins/midi/midifile.c @@ -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; } |