From 34632b8a36964f910d59a06c2d272230686aaa76 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Wed, 16 Oct 2013 03:30:49 -0700 Subject: [PATCH] Whoops, forgot to increment the reference counter when a cache open finds a match --- Plugins/MIDI/MIDI/BMPlayer.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }