aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r--engines/agi/agi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 69b27e10f9..746636d031 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -652,6 +652,8 @@ void AgiEngine::initialize() {
}
AgiEngine::~AgiEngine() {
+ _timer->removeTimerProc(agiTimerFunctionLow);
+
// If the engine hasn't been initialized yet via AgiEngine::initialize(), don't attempt to free any resources,
// as they haven't been allocated. Fixes bug #1742432 - AGI: Engine crashes if no game is detected
if (_game.state == STATE_INIT) {