aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-08-30 12:58:57 +0300
committerFilippos Karapetis2011-08-30 12:59:35 +0300
commitb71123ef4f6ecfb8c60fa87d8fb2da0d2f40eded (patch)
tree8522edac3d2fd890c512b7f5062efdcb7ff1c25e
parented9cf01c78d639f0503ee8ea51c4033ff6158b1b (diff)
downloadscummvm-rg350-b71123ef4f6ecfb8c60fa87d8fb2da0d2f40eded.tar.gz
scummvm-rg350-b71123ef4f6ecfb8c60fa87d8fb2da0d2f40eded.tar.bz2
scummvm-rg350-b71123ef4f6ecfb8c60fa87d8fb2da0d2f40eded.zip
SAGA: properly remove the save reminder callback on engine exit
This fixes an error when exiting to the launcher and restarting a game
-rw-r--r--engines/saga/interface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index fe37ed8995..994b35cbf8 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -324,6 +324,7 @@ Interface::Interface(SagaEngine *vm) : _vm(vm) {
}
Interface::~Interface() {
+ _vm->getTimerManager()->removeTimerProc(&saveReminderCallback);
}
void Interface::saveReminderCallback(void *refCon) {