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 Dec 10, 2013
1 parent 6e6685a commit 3207c01
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions engines/fullpipe/messages.cpp
Expand Up @@ -576,13 +576,12 @@ int GlobalMessageQueueList::compact() {
uint i;

for (i = 1; i < size() + 2; i++) {
if (!useList[i]) {
delete [] useList;

return i;
}
if (!useList[i])
break;
}

delete [] useList;

return i;
}

Expand Down

0 comments on commit 3207c01

Please sign in to comment.