aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes
diff options
context:
space:
mode:
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();