diff options
author | Johannes Schickel | 2009-08-22 00:18:22 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-22 00:18:22 +0000 |
commit | fd88dbacd7d5456a242accd2a31e46d9d8af0dc3 (patch) | |
tree | a304f9bed73fa3f214e61a95fd257ee32437176a /engines | |
parent | 70ccc47accf0563ca793f9d0d03fa6908afbfd99 (diff) | |
download | scummvm-rg350-fd88dbacd7d5456a242accd2a31e46d9d8af0dc3.tar.gz scummvm-rg350-fd88dbacd7d5456a242accd2a31e46d9d8af0dc3.tar.bz2 scummvm-rg350-fd88dbacd7d5456a242accd2a31e46d9d8af0dc3.zip |
Properly uninitialize timer used in AgiEngine.
svn-id: r43623
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/agi.cpp | 2 |
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) { |