aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
authorMatthias S. Benkmann <matthias@winterdrache.de>2008-06-07 13:14:23 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-06-07 13:14:23 (GMT)
commit6509fe0cacf25f30fb6fce9df9569d14f00f0a8f (patch)
tree0edf3d2272a974e523796e3dcec7baf064bf28f7 /src/Ewmh.cc
parent82045e51c8b557f6c3d42c7bfbcc89e5096cad6f (diff)
downloadfluxbox-6509fe0cacf25f30fb6fce9df9569d14f00f0a8f.zip
fluxbox-6509fe0cacf25f30fb6fce9df9569d14f00f0a8f.tar.bz2
fix some memory leaks and uninitialized values
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index fd13a9f..3453b7e 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -156,8 +156,8 @@ void extractNetWmIcon(Atom net_wm_icon, WinClient& winclient) {
156 } 156 }
157 157
158 // allocate some memory for the icons at client side 158 // allocate some memory for the icons at client side
159 img_pm->data = new char[img_pm->bytes_per_line * height]; 159 img_pm->data = static_cast<char*>(malloc(img_pm->bytes_per_line * height));
160 img_mask->data = new char[img_mask->bytes_per_line * height]; 160 img_mask->data = static_cast<char*>(malloc(img_mask->bytes_per_line * height));
161 161
162 162
163 const unsigned long* src = icon_data.begin()->second; 163 const unsigned long* src = icon_data.begin()->second;