aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-18 02:19:18 +0530
committerEugene Sandulenko2019-09-03 17:17:23 +0200
commit161f9e67070f38906cd62b7db65d1d6cf2802823 (patch)
treec672e3075942efc60f94e4f1aec2dbd42cd2b90e /engines/hdb/hdb.cpp
parente9e654d7db8c6b865c6f168f6f35663af85fce85 (diff)
downloadscummvm-rg350-161f9e67070f38906cd62b7db65d1d6cf2802823.tar.gz
scummvm-rg350-161f9e67070f38906cd62b7db65d1d6cf2802823.tar.bz2
scummvm-rg350-161f9e67070f38906cd62b7db65d1d6cf2802823.zip
HDB: NULL each tile after calling destructor
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index c5b91bbb07..49a2f99807 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -87,10 +87,15 @@ HDBGame::~HDBGame() {
delete _rnd;
delete _progressGfx;
+ _progressGfx = NULL;
delete _progressMarkGfx;
+ _progressMarkGfx = NULL;
delete _loadingScreenGfx;
- if (_logoGfx)
+ _loadingScreenGfx = NULL;
+ if (_logoGfx) {
delete _logoGfx;
+ _logoGfx = NULL;
+ }
DebugMan.clearAllDebugChannels();
}