aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/gfx.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-18 18:40:40 +0530
committerEugene Sandulenko2019-09-03 17:17:23 +0200
commitfd91bb7f59ba6ac1b3be7bc245bc25042a05a464 (patch)
tree7bc614745c7841f6beebd2ddc8ef7ed86e70e55e /engines/hdb/gfx.cpp
parent8d9004e43268109394059ff267cce9983c4f5346 (diff)
downloadscummvm-rg350-fd91bb7f59ba6ac1b3be7bc245bc25042a05a464.tar.gz
scummvm-rg350-fd91bb7f59ba6ac1b3be7bc245bc25042a05a464.tar.bz2
scummvm-rg350-fd91bb7f59ba6ac1b3be7bc245bc25042a05a464.zip
HDB: Fix more memory leaks
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r--engines/hdb/gfx.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 8c7cb052b4..94c46bddf8 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -52,6 +52,13 @@ Gfx::~Gfx() {
for (int i = 0; i < _fontHeader.numChars; i++)
_fontSurfaces[i].free();
_globalSurface.free();
+ delete[] _tLookupArray;
+ for (int i = 0; i < 8; i++)
+ delete _mousePointer[i];
+ for (int i = 0; i < 4; i++)
+ delete _starField[i];
+ delete _snowflake;
+ delete _skyClouds;
}
bool Gfx::init() {