summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-22 09:23:29 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-22 09:23:29 (GMT)
commit2f3a48f17fead42b6b2ed906318641e279bb9505 (patch)
tree43b1faf34463ced26bb1e9c4eef2b04a4b272d0f /src
parent73f38a0ebb33feb30124834b2fb7bdbfcdaa6788 (diff)
downloadfluxbox_lack-2f3a48f17fead42b6b2ed906318641e279bb9505.zip
fluxbox_lack-2f3a48f17fead42b6b2ed906318641e279bb9505.tar.bz2
apply patch to fix memory leak that shouldn't exist
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));