aboutsummaryrefslogtreecommitdiff
path: root/src/Gnome.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-10-02 16:14:41 (GMT)
committerrathnor <rathnor>2003-10-02 16:14:41 (GMT)
commit158b515e21f0f0154041cd5985ec38fe37c0e875 (patch)
treec1aebd425cef8610820043ae1f380dd5fb1f02d1 /src/Gnome.cc
parentbb1a7c92d8bb194e7e415f4348b7428f1b8ef436 (diff)
downloadfluxbox_pavel-158b515e21f0f0154041cd5985ec38fe37c0e875.zip
fluxbox_pavel-158b515e21f0f0154041cd5985ec38fe37c0e875.tar.bz2
address some memory issues shown up with valgrind
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r--src/Gnome.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc
index 2059839..86f7f75 100644
--- a/src/Gnome.cc
+++ b/src/Gnome.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Gnome.cc,v 1.31 2003/07/28 15:06:33 rathnor Exp $ 22// $Id: Gnome.cc,v 1.32 2003/10/02 16:14:41 rathnor Exp $
23 23
24#include "Gnome.hh" 24#include "Gnome.hh"
25 25
@@ -147,7 +147,7 @@ void Gnome::updateClientList(BScreen &screen) {
147 num += (*win_it)->numClients(); 147 num += (*win_it)->numClients();
148 } 148 }
149 149
150 Window *wl = new (nothrow) Window[num]; 150 Window *wl = new Window[num];
151 if (wl == 0) { 151 if (wl == 0) {
152 cerr<<"Fatal: Out of memory, can't allocate ("<<num*sizeof (Window)<<") for gnome client list"<<endl; 152 cerr<<"Fatal: Out of memory, can't allocate ("<<num*sizeof (Window)<<") for gnome client list"<<endl;
153 return; 153 return;