window.c: fix memory leak
This commit is contained in:
parent
e7f1476180
commit
feef3ea78a
|
@ -244,6 +244,7 @@ void window_update_role(i3Window *win, xcb_get_property_reply_t *prop, bool befo
|
|||
*/
|
||||
void window_update_type(i3Window *window, xcb_get_property_reply_t *reply) {
|
||||
xcb_atom_t new_type = xcb_get_preferred_window_type(reply);
|
||||
free(reply);
|
||||
if (new_type == XCB_NONE) {
|
||||
DLOG("cannot read _NET_WM_WINDOW_TYPE from window.\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue