Whoops, forgot to increment the reference counter when a cache open finds a match
This commit is contained in:
parent
22f9e86fd1
commit
34632b8a36
1 changed files with 3 additions and 0 deletions
|
@ -87,7 +87,10 @@ static HSOUNDFONT cache_open( const char * path )
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
font = entry.handle;
|
||||
++entry.ref_count;
|
||||
}
|
||||
|
||||
return font;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue