diff options
author | rathnor <rathnor> | 2003-10-02 16:14:41 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-10-02 16:14:41 (GMT) |
commit | 158b515e21f0f0154041cd5985ec38fe37c0e875 (patch) | |
tree | c1aebd425cef8610820043ae1f380dd5fb1f02d1 /src/Gnome.cc | |
parent | bb1a7c92d8bb194e7e415f4348b7428f1b8ef436 (diff) | |
download | fluxbox-158b515e21f0f0154041cd5985ec38fe37c0e875.zip fluxbox-158b515e21f0f0154041cd5985ec38fe37c0e875.tar.bz2 |
address some memory issues shown up with valgrind
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r-- | src/Gnome.cc | 4 |
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; |