Skip to content

Commit

Permalink
FULLPIPE: Plug memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 4, 2015
1 parent 308bfe3 commit 4393d38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/fullpipe/statics.cpp
Expand Up @@ -1048,8 +1048,11 @@ MessageQueue *StaticANIObject::changeStatics1(int msgNum) {
if (_flags & 1)
_messageQueueId = mq->_id;
} else {
if (!queueMessageQueue(mq))
if (!queueMessageQueue(mq)) {
delete mq;

return 0;
}

g_fp->_globalMessageQueueList->addMessageQueue(mq);
}
Expand Down

0 comments on commit 4393d38

Please sign in to comment.