Remove newly added entry from the cache if the font failed to load
parent
99c1942eb3
commit
e3fa04a57c
|
@ -84,6 +84,10 @@ HSOUNDFONT cache_open( const char * path )
|
|||
entry.handle = font;
|
||||
entry.ref_count = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
Cache_List.erase( path );
|
||||
}
|
||||
}
|
||||
else
|
||||
font = entry.handle;
|
||||
|
|
Loading…
Reference in New Issue