aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-07-17 21:18:42 +0530
committerEugene Sandulenko2019-09-03 17:17:22 +0200
commit14dbbdd852b6af56f509474df3d122ee04968526 (patch)
tree03079ea8aa75834ef6925db997ba8f79bef72761
parentac61b7ef9ccf58a7b56dcad1aa4e28fed1b07534 (diff)
downloadscummvm-rg350-14dbbdd852b6af56f509474df3d122ee04968526.tar.gz
scummvm-rg350-14dbbdd852b6af56f509474df3d122ee04968526.tar.bz2
scummvm-rg350-14dbbdd852b6af56f509474df3d122ee04968526.zip
HDB: Fix _fontSurfaces memory leak
-rw-r--r--engines/hdb/gfx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index f9534eaddf..2593198f06 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -42,6 +42,8 @@ Gfx::~Gfx() {
delete _gfxCache;
delete _sines;
delete _cosines;
+ for (int i = 0; i < _fontHeader.numChars; i++)
+ _fontSurfaces[i].free();
_globalSurface.free();
}