mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-02 07:28:32 +00:00
GRAPHICS: Fix freeing invalid pointers in the BDF font destructor
Fixes a crash on exit when using a non default GUI font. Possibly fixes #10318.
This commit is contained in:
parent
327dcf98ec
commit
65d0984364
@ -694,6 +694,8 @@ BdfFont *BdfFont::loadFromCache(Common::SeekableReadStream &stream) {
|
||||
data.bitmaps = bitmaps;
|
||||
data.advances = advances;
|
||||
data.boxes = boxes;
|
||||
data.familyName = nullptr;
|
||||
data.slant = nullptr;
|
||||
return new BdfFont(data, DisposeAfterUse::YES);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user