mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
WINTERMUTE: Fix double delete of TTFs.
This commit is contained in:
parent
53f0871b07
commit
6476ba33d2
@ -560,7 +560,7 @@ bool BaseFontTT::initFont() {
|
||||
if (file) {
|
||||
_deletableFont = Graphics::loadTTFFont(*file, 96, _fontHeight); // Use the same dpi as WME (96 vs 72).
|
||||
_font = _deletableFont;
|
||||
delete file;
|
||||
BaseFileManager::getEngineInstance()->closeFile(file);
|
||||
file = NULL;
|
||||
}
|
||||
|
||||
@ -575,6 +575,7 @@ bool BaseFontTT::initFont() {
|
||||
_deletableFont = Graphics::loadTTFFont(*file, 96, _fontHeight); // Use the same dpi as WME (96 vs 72).
|
||||
_font = _deletableFont;
|
||||
}
|
||||
// We're not using BaseFileManager, so clean up after ourselves:
|
||||
delete file;
|
||||
file = NULL;
|
||||
delete themeArchive;
|
||||
|
Loading…
x
Reference in New Issue
Block a user