diff options
author | Eugene Sandulenko | 2013-12-11 23:17:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-11 23:17:45 +0200 |
commit | d078399e896f721247a401cc612a2027486c12ee (patch) | |
tree | cfa9a9c6886a372d12bf149c9cbfa01e470dd416 /engines/fullpipe | |
parent | e867326b9b32ca5c64eeb950cd9d4706b8493d34 (diff) | |
download | scummvm-rg350-d078399e896f721247a401cc612a2027486c12ee.tar.gz scummvm-rg350-d078399e896f721247a401cc612a2027486c12ee.tar.bz2 scummvm-rg350-d078399e896f721247a401cc612a2027486c12ee.zip |
FULLPIPE: Fix wrong deletion order in MessageQueue::deleteExCommandByIndex()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp index 36148734ca..c2f5ca3f7e 100644 --- a/engines/fullpipe/messages.cpp +++ b/engines/fullpipe/messages.cpp @@ -355,10 +355,10 @@ void MessageQueue::deleteExCommandByIndex(uint idx, bool doFree) { idx--; } - _exCommands.erase(it); - if (doFree) delete *it; + + _exCommands.erase(it); } void MessageQueue::transferExCommands(MessageQueue *mq) { |