From a224e28c152ce51dc33ddc8998fcdb8a274d89a5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 18 Jul 2014 20:33:49 -0400 Subject: MADS: Fixes for compilation warnings --- engines/mads/nebular/dialogs_nebular.cpp | 4 ++++ engines/mads/nebular/dialogs_nebular.h | 2 ++ engines/mads/nebular/menu_nebular.h | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3