From 51b19e97c8d54d88e54cf7c88aca19d7b0962371 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 16 Nov 2017 23:54:13 -0600 Subject: FULLPIPE: Fix memory leaks of Interactions --- engines/fullpipe/interaction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') 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()); removeMessageHandler(124, -1); } -- cgit v1.2.3