Bugfix: free replies after using them
This commit is contained in:
parent
d9ff172d36
commit
7f3f7c26b6
|
@ -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 (=
|
||||
|
|
Loading…
Reference in New Issue