From 7f3f7c26b68396e5763dc66ce3b05c7685227131 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 31 Jul 2011 18:17:56 +0200 Subject: [PATCH] Bugfix: free replies after using them --- src/manage.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manage.c b/src/manage.c index bcce8ab1..3636b1ad 100644 --- a/src/manage.c +++ b/src/manage.c @@ -283,6 +283,8 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki want_floating = true; } + FREE(reply); + if (cwindow->transient_for != XCB_NONE || (cwindow->leader != XCB_NONE && cwindow->leader != cwindow->id && @@ -332,6 +334,8 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki if (xcb_reply_contains_atom(reply, A__NET_WM_STATE_FULLSCREEN)) con_toggle_fullscreen(nc, CF_OUTPUT); + FREE(reply); + /* Put the client inside the save set. Upon termination (whether killed or * normal exit does not matter) of the window manager, these clients will * be correctly reparented to their most closest living ancestor (=