aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-04 21:58:22 +0200
committerEugene Sandulenko2019-09-03 17:17:31 +0200
commit25eaaf38fba239ad88786e16b8546a6d5de18ebc (patch)
tree181bd9c60ba11cb8d907a91dfa1f7347e376ff59
parent7916f2c86b8e837ccdc9baa9af2109c30f859d9d (diff)
downloadscummvm-rg350-25eaaf38fba239ad88786e16b8546a6d5de18ebc.tar.gz
scummvm-rg350-25eaaf38fba239ad88786e16b8546a6d5de18ebc.tar.bz2
scummvm-rg350-25eaaf38fba239ad88786e16b8546a6d5de18ebc.zip
HDB: Fix inconsistency in platform-specific code
This led to crash in destructors
-rw-r--r--engines/hdb/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index 58211d6c3f..9a3c1b77fd 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -118,13 +118,13 @@ Window::~Window() {
delete _gfxHandright;
if (g_hdb->isPPC()) {
+ delete _gfxResources;
+ delete _gfxDeliveries;
+ } else {
delete _gfxInfobar;
delete _gfxDarken;
delete _gfxPausePlaque;
delete _mstoneGfx;
- } else {
- delete _gfxResources;
- delete _gfxDeliveries;
}