diff options
author | Colin Snover | 2017-11-15 12:16:05 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | ca5a86e703d3fe72cc370845622097ee16f4d67e (patch) | |
tree | c53ee7044c7c94402e3ba98fc2576efa9fb497ef /engines | |
parent | c2dcb27e356cb3bff4ddcecfb40733a76954550d (diff) | |
download | scummvm-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.cpp | 2 |
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; |