Fix mismatching allocation and deallocation
Fixes #9901. Signed-off-by: Matt Madia <[email protected]>
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user