diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 390fe0d7427..c217cb8612a 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -248,6 +248,9 @@ void ScriptManager::changeLocationIntern() { // Clear all the containers _referenceTable.clear(); _puzzlesToCheck.clear(); + for (Common::List::iterator iter = _activePuzzles.begin(); iter != _activePuzzles.end(); iter++) { + delete (*iter); + } _activePuzzles.clear(); // We can clear without deleting from the heap because we use SharedPtr _activeControls.clear();