aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes
diff options
context:
space:
mode:
authorStrangerke2016-04-19 21:11:47 +0200
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commit880bc07ae1dd18049078ad664ff5fb3c932d0fb6 (patch)
treebab5c22d2fd972f75c8f04975e56285093a0987d /engines/gnap/scenes
parent65f8a72b16e19a7c14528e918549bdbbfa79dac3 (diff)
downloadscummvm-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.cpp4
-rw-r--r--engines/gnap/scenes/scene01.h1
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();