Fix mismatching allocation and deallocation

Fixes #9901.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
This commit is contained in:
Murai Takashi 2013-07-27 20:16:50 +09:00 committed by Matt Madia
parent 5750cec747
commit 9e0f440c1c

View File

@ -53,7 +53,7 @@ GLifeGrid::GLifeGrid(int32 iWidth, int32 iHeight)
// GLifeGrid Class Destructor Definition
GLifeGrid::~GLifeGrid(void)
{
delete m_pbGrid;
delete[] m_pbGrid;
}
@ -75,7 +75,7 @@ GLifeGrid::Generation(void)
}
// Swap grids
delete m_pbGrid;
delete[] m_pbGrid;
m_pbGrid = pbTemp;
}