diff options
author | Strangerke | 2016-04-19 21:11:47 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 880bc07ae1dd18049078ad664ff5fb3c932d0fb6 (patch) | |
tree | bab5c22d2fd972f75c8f04975e56285093a0987d /engines/gnap/scenes | |
parent | 65f8a72b16e19a7c14528e918549bdbbfa79dac3 (diff) | |
download | scummvm-rg350-880bc07ae1dd18049078ad664ff5fb3c932d0fb6.tar.gz scummvm-rg350-880bc07ae1dd18049078ad664ff5fb3c932d0fb6.tar.bz2 scummvm-rg350-880bc07ae1dd18049078ad664ff5fb3c932d0fb6.zip |
GNAP: Add destructor to scene 1
Diffstat (limited to 'engines/gnap/scenes')
-rw-r--r-- | engines/gnap/scenes/scene01.cpp | 4 | ||||
-rw-r--r-- | engines/gnap/scenes/scene01.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/gnap/scenes/scene01.cpp b/engines/gnap/scenes/scene01.cpp index be104a2649..39d21fc320 100644 --- a/engines/gnap/scenes/scene01.cpp +++ b/engines/gnap/scenes/scene01.cpp @@ -59,6 +59,10 @@ Scene01::Scene01(GnapEngine *vm) : Scene(vm) { _s01_spaceshipSurface = nullptr; } +Scene01::~Scene01() { + delete _s01_spaceshipSurface; +} + int Scene01::init() { _vm->_gameSys->setAnimation(0, 0, 0); _vm->_gameSys->setAnimation(0, 0, 3); diff --git a/engines/gnap/scenes/scene01.h b/engines/gnap/scenes/scene01.h index b24ae53132..e7d3a335b2 100644 --- a/engines/gnap/scenes/scene01.h +++ b/engines/gnap/scenes/scene01.h @@ -33,6 +33,7 @@ class GnapEngine; class Scene01: public Scene { public: Scene01(GnapEngine *vm); + ~Scene01(); virtual int init(); virtual void updateHotspots(); |