aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-26 17:25:31 +0100
committerEugene Sandulenko2019-12-26 17:25:31 +0100
commit043acc1cccd4d30afc4c6c296fd9d8025e50c25a (patch)
tree09aa2a85b01547faf0e0591bd8ca9ec4360be85f /graphics/fonts
parent32c96f63730162867ad0bdf3406a7ce811fea6ef (diff)
downloadscummvm-rg350-043acc1cccd4d30afc4c6c296fd9d8025e50c25a.tar.gz
scummvm-rg350-043acc1cccd4d30afc4c6c296fd9d8025e50c25a.tar.bz2
scummvm-rg350-043acc1cccd4d30afc4c6c296fd9d8025e50c25a.zip
GRAPHICS: FONTS: Fix mismatched new/delete.
Diffstat (limited to 'graphics/fonts')
-rw-r--r--graphics/fonts/macfont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/fonts/macfont.cpp b/graphics/fonts/macfont.cpp
index 80c1dc4435..5fb354b9f2 100644
--- a/graphics/fonts/macfont.cpp
+++ b/graphics/fonts/macfont.cpp
@@ -242,7 +242,7 @@ bool MacFontFamily::load(Common::SeekableReadStream &stream) {
}
MacFONTFont::~MacFONTFont() {
- free(_data._bitImage);
+ delete _data._bitImage;
}
bool MacFONTFont::loadFont(Common::SeekableReadStream &stream, MacFontFamily *family, int size, int style) {