Fix mismatching allocation and deallocation

Fixes #9901.

Signed-off-by: Matt Madia <[email protected]>
This commit is contained in:
Murai Takashi
2013-11-10 18:33:35 -05:00
committed by Matt Madia
parent 5750cec747
commit 9e0f440c1c
@@ -53,7 +53,7 @@ GLifeGrid::GLifeGrid(int32 iWidth, int32 iHeight)
// GLifeGrid Class Destructor Definition // GLifeGrid Class Destructor Definition
GLifeGrid::~GLifeGrid(void) GLifeGrid::~GLifeGrid(void)
{ {
delete m_pbGrid; delete[] m_pbGrid;
} }
@@ -75,7 +75,7 @@ GLifeGrid::Generation(void)
} }
// Swap grids // Swap grids
delete m_pbGrid; delete[] m_pbGrid;
m_pbGrid = pbTemp; m_pbGrid = pbTemp;
} }