From: Michael Stapelberg Date: Sat, 9 Jan 2016 12:54:37 +0000 (+0100) Subject: window.c: fix memory leak X-Git-Tag: 4.12~49 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=feef3ea78a773374706f0c6535f96ae2ab812457 window.c: fix memory leak --- diff --git a/src/window.c b/src/window.c index a86f77a2..bd4e2719 100644 --- a/src/window.c +++ b/src/window.c @@ -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;