diff --git a/Plugins/MIDI/MIDI/BMPlayer.cpp b/Plugins/MIDI/MIDI/BMPlayer.cpp index 720402e69..43cdef4f8 100644 --- a/Plugins/MIDI/MIDI/BMPlayer.cpp +++ b/Plugins/MIDI/MIDI/BMPlayer.cpp @@ -87,7 +87,10 @@ static HSOUNDFONT cache_open( const char * path ) } } else + { font = entry.handle; + ++entry.ref_count; + } return font; }