apply patch to fix memory leak that shouldn't exist
This commit is contained in:
parent
73f38a0ebb
commit
2f3a48f17f
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue