aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-11-16 23:54:13 -0600
committerEugene Sandulenko2017-11-18 22:35:12 +0100
commit51b19e97c8d54d88e54cf7c88aca19d7b0962371 (patch)
tree4cb65c1286e573bb86b2da6919db87232b3f5c37 /engines
parentc9327f29859dcbbeca99a116d9ce2aebf366ced1 (diff)
downloadscummvm-rg350-51b19e97c8d54d88e54cf7c88aca19d7b0962371.tar.gz
scummvm-rg350-51b19e97c8d54d88e54cf7c88aca19d7b0962371.tar.bz2
scummvm-rg350-51b19e97c8d54d88e54cf7c88aca19d7b0962371.zip
FULLPIPE: Fix memory leaks of Interactions
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/interaction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/fullpipe/interaction.cpp b/engines/fullpipe/interaction.cpp
index 89e3174c7e..08c8c8fe47 100644
--- a/engines/fullpipe/interaction.cpp
+++ b/engines/fullpipe/interaction.cpp
@@ -56,8 +56,7 @@ bool canInteractAny(GameObject *obj1, GameObject *obj2, int invId) {
}
InteractionController::~InteractionController() {
- _interactions.clear();
-
+ Common::for_each(_interactions.begin(), _interactions.end(), Common::DefaultDeleter<Interaction>());
removeMessageHandler(124, -1);
}