diff options
-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) { |