fix memory leak when swallowing windows

This commit is contained in:
Michael Stapelberg
2016-01-09 16:47:48 +01:00
parent 8d917497c2
commit f511cc61c1
4 changed files with 23 additions and 5 deletions

View File

@ -310,6 +310,9 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
}
}
}
if (nc->window != cwindow && nc->window != NULL) {
window_free(nc->window);
}
nc->window = cwindow;
x_reinit(nc);