diff options
-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 |