hrev46349 adds 1 changeset to branch 'master' old head: 5750cec7473cc2c6cc61d3ea2247c116bc90fabe new head: 9e0f440c1cb4155c069445065223098f9bfe7efc overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=9e0f440+%5E5750cec ---------------------------------------------------------------------------- 9e0f440: Fix mismatching allocation and deallocation Fixes #9901. Signed-off-by: Matt Madia <mattmadia@xxxxxxxxx> [ Murai Takashi <tmurai01@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev46349 Commit: 9e0f440c1cb4155c069445065223098f9bfe7efc URL: http://cgit.haiku-os.org/haiku/commit/?id=9e0f440 Author: Murai Takashi <tmurai01@xxxxxxxxx> Date: Sat Jul 27 11:16:50 2013 UTC Committer: Matt Madia <mattmadia@xxxxxxxxx> Commit-Date: Sun Nov 10 23:33:35 2013 UTC Ticket: https://dev.haiku-os.org/ticket/9901 ---------------------------------------------------------------------------- 1 file changed, 2 insertions(+), 2 deletions(-) src/add-ons/screen_savers/glife/GLifeGrid.cpp | 4 ++-- ---------------------------------------------------------------------------- diff --git a/src/add-ons/screen_savers/glife/GLifeGrid.cpp b/src/add-ons/screen_savers/glife/GLifeGrid.cpp index c53ad3b..41a81a8 100644 --- a/src/add-ons/screen_savers/glife/GLifeGrid.cpp +++ b/src/add-ons/screen_savers/glife/GLifeGrid.cpp @@ -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; }