From 9194506696291f11f3de2a8749eadaf63519d532 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 25 Jul 2019 02:36:35 +0100 Subject: [PATCH] core: destroy debug window in session_destroy Signed-off-by: Yuxuan Shui --- src/compton.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compton.c b/src/compton.c index 7a2b73bc..0370578a 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2147,6 +2147,11 @@ static void session_destroy(session_t *ps) { ps->reg_win = XCB_NONE; } + if (ps->debug_window) { + xcb_destroy_window(ps->c, ps->debug_window); + ps->debug_window = XCB_NONE; + } + if (ps->o.experimental_backends) { // backend is deinitialized in redir_stop assert(ps->backend_data == NULL);