aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/celer2.cpp1
-rw-r--r--engines/avalanche/lucerna2.cpp6
-rw-r--r--engines/avalanche/lucerna2.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/engines/avalanche/celer2.cpp b/engines/avalanche/celer2.cpp
index 0094fa5616..5d7dacf4e7 100644
--- a/engines/avalanche/celer2.cpp
+++ b/engines/avalanche/celer2.cpp
@@ -359,6 +359,7 @@ void Celer::drawBackgroundSprite(int16 destX, int16 destY, byte which) {
}
drawSprite(destX, destY, sprite);
+ sprite._picture.free();
f.close();
}
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 20e83e5639..f225d0263e 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -57,6 +57,12 @@ Lucerna::Lucerna(AvalancheEngine *vm) : fxhidden(false) {
_vm = vm;
}
+Lucerna::~Lucerna() {
+ for (byte i = 0; i < 31; i++)
+ for (byte j = 0; j < 2; j++)
+ delete _vm->_gyro->also[i][j];
+}
+
void Lucerna::init() {
_vm->_gyro->oh = 17717;
_vm->_gyro->om = 17717;
diff --git a/engines/avalanche/lucerna2.h b/engines/avalanche/lucerna2.h
index d3e1becbdd..8e5897f82c 100644
--- a/engines/avalanche/lucerna2.h
+++ b/engines/avalanche/lucerna2.h
@@ -44,6 +44,8 @@ public:
Lucerna(AvalancheEngine *vm);
+ ~Lucerna();
+
void init();
void callverb(byte n);