fix 4 MB memory leak on every save
This commit is contained in:
parent
0939494747
commit
b92bd245c8
@ -2064,6 +2064,16 @@ fin:
|
||||
free(partsSaveIndex);
|
||||
if (soapLinkData)
|
||||
free(soapLinkData);
|
||||
if (partsPosData)
|
||||
free(partsPosData);
|
||||
if (partsPosFirstMap)
|
||||
free(partsPosFirstMap);
|
||||
if (partsPosLastMap)
|
||||
free(partsPosLastMap);
|
||||
if (partsPosCount)
|
||||
free(partsPosCount);
|
||||
if (partsPosLink)
|
||||
free(partsPosLink);
|
||||
|
||||
return (char*)outputData;
|
||||
}
|
||||
|
@ -175,6 +175,10 @@ GameModel::~GameModel()
|
||||
{
|
||||
delete brushList[i];
|
||||
}
|
||||
for(std::deque<Snapshot*>::iterator iter = history.begin(), end = history.end(); iter != end; ++iter)
|
||||
{
|
||||
delete *iter;
|
||||
}
|
||||
delete sim;
|
||||
delete ren;
|
||||
if(placeSave)
|
||||
|
Loading…
Reference in New Issue
Block a user