From 8808817d56d37a66eb6a590715035076fcc14ade Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 17 Nov 2017 10:37:26 -0600 Subject: FULLPIPE: Fix memory leaks of MessageQueues when clearing GlobalMessageQueueList --- engines/fullpipe/messages.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/messages.h') diff --git a/engines/fullpipe/messages.h b/engines/fullpipe/messages.h index 91677a172d..71ec962c7c 100644 --- a/engines/fullpipe/messages.h +++ b/engines/fullpipe/messages.h @@ -163,13 +163,14 @@ class MessageQueue : public CObject { }; class GlobalMessageQueueList : public Common::Array { - public: +public: MessageQueue *getMessageQueueById(int id); void deleteQueueById(int id); void removeQueueById(int id); void disableQueueById(int id); /** `msg` becomes owned by `this` */ void addMessageQueue(MessageQueue *msg); + void clear(); int compact(); }; -- cgit v1.2.3