aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-11-15 12:16:05 -0600
committerEugene Sandulenko2017-11-18 22:35:12 +0100
commitca5a86e703d3fe72cc370845622097ee16f4d67e (patch)
treec53ee7044c7c94402e3ba98fc2576efa9fb497ef /engines
parentc2dcb27e356cb3bff4ddcecfb40733a76954550d (diff)
downloadscummvm-rg350-ca5a86e703d3fe72cc370845622097ee16f4d67e.tar.gz
scummvm-rg350-ca5a86e703d3fe72cc370845622097ee16f4d67e.tar.bz2
scummvm-rg350-ca5a86e703d3fe72cc370845622097ee16f4d67e.zip
FULLPIPE: Fix memory leak of global message queues
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index e332728f5b..c8656906e0 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -684,7 +684,7 @@ int GlobalMessageQueueList::compact() {
for (uint i = 0; i < size();) {
if (_storage[i]->_isFinished) {
disableQueueById(_storage[i]->_id);
- remove_at(i);
+ delete remove_at(i);
} else {
if ((uint)_storage[i]->_id < size() + 2)
useList[_storage[i]->_id] = 1;