Whoops, forgot to increment the reference counter when a cache open finds a match

CQTexperiment
Chris Moeller 2013-10-16 03:30:49 -07:00
parent 22f9e86fd1
commit 34632b8a36
1 changed files with 3 additions and 0 deletions

View File

@ -87,7 +87,10 @@ static HSOUNDFONT cache_open( const char * path )
}
}
else
{
font = entry.handle;
++entry.ref_count;
}
return font;
}