diff options
Diffstat (limited to 'engines/kyra/loleobbase.cpp')
-rw-r--r-- | engines/kyra/loleobbase.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/kyra/loleobbase.cpp b/engines/kyra/loleobbase.cpp index bcab2781a0..3db7537ded 100644 --- a/engines/kyra/loleobbase.cpp +++ b/engines/kyra/loleobbase.cpp @@ -149,6 +149,10 @@ LolEobBaseEngine::~LolEobBaseEngine() { delete[] _levelDecorationData; delete[] _levelDecorationProperties; delete[] _levelBlockProperties; + + for (Common::Array<Button::Callback>::iterator i = _buttonCallbacks.begin(); i != _buttonCallbacks.end(); ++i) + i->reset(); + _buttonCallbacks.clear(); } Common::Error LolEobBaseEngine::init() { |