From 2f3a48f17fead42b6b2ed906318641e279bb9505 Mon Sep 17 00:00:00 2001
From: Mark Tiefenbruck <mark@fluxbox.org>
Date: Fri, 22 Aug 2008 02:23:29 -0700
Subject: apply patch to fix memory leak that shouldn't exist

---
 src/Ewmh.cc | 2 ++
 1 file changed, 2 insertions(+)

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) {
         nr_icon_data = nr_bytes_left / sizeof(CARD32);
 
         // read all the icons stored in _NET_WM_ICON
+        if (raw_data)
+                XFree(raw_data);
         winclient.property(net_wm_icon, 0L, nr_icon_data, False, XA_CARDINAL,
                            &rtype, &rfmt, &nr_read, &nr_bytes_left,
                            reinterpret_cast<unsigned char**>(&raw_data));
-- 
cgit v0.11.2