diff options
author | Paul Gilbert | 2014-07-18 20:33:49 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-07-18 20:33:49 -0400 |
commit | a224e28c152ce51dc33ddc8998fcdb8a274d89a5 (patch) | |
tree | 03b7cf64de4bfe37c0e9408bb227443361cbb6f2 /engines/mads | |
parent | 97d29debeb008bf75ed4bda1ec884fd17e49a8bc (diff) | |
download | scummvm-rg350-a224e28c152ce51dc33ddc8998fcdb8a274d89a5.tar.gz scummvm-rg350-a224e28c152ce51dc33ddc8998fcdb8a274d89a5.tar.bz2 scummvm-rg350-a224e28c152ce51dc33ddc8998fcdb8a274d89a5.zip |
MADS: Fixes for compilation warnings
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 4 | ||||
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.h | 2 | ||||
-rw-r--r-- | engines/mads/nebular/menu_nebular.h | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index 1cbb7ea3a6..d1fc47e0e7 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -528,6 +528,10 @@ FullScreenDialog::FullScreenDialog(MADSEngine *vm) : _vm(vm) { _screenId = 990; } +FullScreenDialog::~FullScreenDialog() { + _savedSurface.free(); +} + void FullScreenDialog::display() { Game &game = *_vm->_game; Scene &scene = game._scene; diff --git a/engines/mads/nebular/dialogs_nebular.h b/engines/mads/nebular/dialogs_nebular.h index 46973cc497..cf3a75a969 100644 --- a/engines/mads/nebular/dialogs_nebular.h +++ b/engines/mads/nebular/dialogs_nebular.h @@ -133,6 +133,8 @@ public: * Constructor */ FullScreenDialog(MADSEngine *vm); + + virtual ~FullScreenDialog(); }; class GameDialog: public FullScreenDialog { diff --git a/engines/mads/nebular/menu_nebular.h b/engines/mads/nebular/menu_nebular.h index 581ebe34e4..4cd6f37430 100644 --- a/engines/mads/nebular/menu_nebular.h +++ b/engines/mads/nebular/menu_nebular.h @@ -47,6 +47,8 @@ protected: public: MenuView(MADSEngine *vm); + virtual ~MenuView() {} + void execute(); }; @@ -70,7 +72,7 @@ protected: virtual bool onEvent(Common::Event &event); public: MainMenu(MADSEngine *vm); - ~MainMenu(); + virtual ~MainMenu(); }; } // End of namespace Nebular |