diff options
author | Nipun Garg | 2019-07-17 23:34:08 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:22 +0200 |
commit | d706fbf22e7399944c480339ec3a023d47dffb1a (patch) | |
tree | ebdf8a85e625beb5418f20e12cb070ae4213d20a /engines/hdb/gfx.cpp | |
parent | ff2c6fe30a7aba9021f10abb64483a0c1857c077 (diff) | |
download | scummvm-rg350-d706fbf22e7399944c480339ec3a023d47dffb1a.tar.gz scummvm-rg350-d706fbf22e7399944c480339ec3a023d47dffb1a.tar.bz2 scummvm-rg350-d706fbf22e7399944c480339ec3a023d47dffb1a.zip |
HDB: Fix memory leaks
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r-- | engines/hdb/gfx.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index b497b53b05..54746c39d1 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -45,6 +45,8 @@ Gfx::~Gfx() { for (uint i = 0; i < _gfxCache->size(); i++) delete _gfxCache->operator[](i); delete _gfxCache; + for (uint i = 0; i < _charInfoBlocks.size(); i++) + delete _charInfoBlocks[i]; delete _sines; delete _cosines; for (int i = 0; i < _fontHeader.numChars; i++) |