aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
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;