From d2f6e87784d856c531b57de46275c44b1ced3fa5 Mon Sep 17 00:00:00 2001
From: Murai Takashi <tmurai01@gmail.com>
Date: Sat, 27 Jul 2013 20:16:50 +0900
Subject: [PATCH] Fix mismatching allocation and deallocation
---
src/add-ons/screen_savers/glife/GLifeGrid.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
|
b
|
GLifeGrid::GLifeGrid(int32 iWidth, int32 iHeight)
|
53 | 53 | // GLifeGrid Class Destructor Definition |
54 | 54 | GLifeGrid::~GLifeGrid(void) |
55 | 55 | { |
56 | | delete m_pbGrid; |
| 56 | delete[] m_pbGrid; |
57 | 57 | } |
58 | 58 | |
59 | 59 | |
… |
… |
GLifeGrid::Generation(void)
|
75 | 75 | } |
76 | 76 | |
77 | 77 | // Swap grids |
78 | | delete m_pbGrid; |
| 78 | delete[] m_pbGrid; |
79 | 79 | m_pbGrid = pbTemp; |
80 | 80 | } |
81 | 81 | |