aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-24 12:15:58 -0400
committerPaul Gilbert2017-09-24 12:15:58 -0400
commit3333432b4dc35b65d27423ab7860fae068b13d5e (patch)
tree2cb63d73b33b0f0550a4b551765bc5a8b28b462d
parentd73ada9088b53451eaa0b7e57064b6e6769f63fc (diff)
downloadscummvm-rg350-3333432b4dc35b65d27423ab7860fae068b13d5e.tar.gz
scummvm-rg350-3333432b4dc35b65d27423ab7860fae068b13d5e.tar.bz2
scummvm-rg350-3333432b4dc35b65d27423ab7860fae068b13d5e.zip
TITANIC: Fix leak of movie event structures
-rw-r--r--engines/titanic/game_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/titanic/game_manager.cpp b/engines/titanic/game_manager.cpp
index e5f46bc7b7..e3365be108 100644
--- a/engines/titanic/game_manager.cpp
+++ b/engines/titanic/game_manager.cpp
@@ -256,6 +256,7 @@ void CGameManager::updateMovies() {
}
eventsList.remove(movieEvent);
+ delete movieEvent;
}
repeatFlag = true;