aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/gyro2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/gyro2.cpp')
-rw-r--r--engines/avalanche/gyro2.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/avalanche/gyro2.cpp b/engines/avalanche/gyro2.cpp
index fa1298a322..76640739af 100644
--- a/engines/avalanche/gyro2.cpp
+++ b/engines/avalanche/gyro2.cpp
@@ -261,10 +261,16 @@ Gyro::~Gyro() {
delete[] vmc.andpic;
delete[] vmc.xorpic;
- for (int fv = 0; fv < 2; fv ++) {
+ for (byte fv = 0; fv < 2; fv ++) {
delete[] vmc.backpic[fv];
}
+ for (byte i = 0; i < 9; i++) {
+ digit[i].free();
+ rwlite[i].free();
+ }
+ digit[9].free();
+
}
void Gyro::newpointer(byte m) {