window.c: fix memory leak

This commit is contained in:
Michael Stapelberg 2016-01-09 13:54:37 +01:00
parent e7f1476180
commit feef3ea78a
1 changed files with 1 additions and 0 deletions

View File

@ -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;