1
0

Fixed a memory leak in cPOCPieceGenerator

This commit is contained in:
madmaxoft 2014-05-29 09:19:20 +02:00
parent b56033d541
commit e5187aa645

View File

@ -186,6 +186,11 @@ cPOCPieceGenerator::cPOCPieceGenerator(int a_Seed) :
cPOCPieceGenerator::~cPOCPieceGenerator()
{
cPieceGenerator::FreePieces(m_Pieces);
for (cPieces::iterator itr = m_AvailPieces.begin(), end = m_AvailPieces.end(); itr != end; ++itr)
{
delete *itr;
}
m_AvailPieces.clear();
}