summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Ewmh.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 06a1b1a..2617491 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -108,6 +108,8 @@ void extractNetWmIcon(Atom net_wm_icon, WinClient& winclient) {
108 nr_icon_data = nr_bytes_left / sizeof(CARD32); 108 nr_icon_data = nr_bytes_left / sizeof(CARD32);
109 109
110 // read all the icons stored in _NET_WM_ICON 110 // read all the icons stored in _NET_WM_ICON
111 if (raw_data)
112 XFree(raw_data);
111 winclient.property(net_wm_icon, 0L, nr_icon_data, False, XA_CARDINAL, 113 winclient.property(net_wm_icon, 0L, nr_icon_data, False, XA_CARDINAL,
112 &rtype, &rfmt, &nr_read, &nr_bytes_left, 114 &rtype, &rfmt, &nr_read, &nr_bytes_left,
113 reinterpret_cast<unsigned char**>(&raw_data)); 115 reinterpret_cast<unsigned char**>(&raw_data));