From c64af752ce327ff933997daee3814caba0601088 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Sun, 11 Aug 2024 10:56:07 +0100 Subject: [PATCH] Fix a use-after-free error in tickit_window_destroy() Bug-Debian: https://bugs.debian.org/1078154 --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 89594dd..7248d2d 100644 --- a/src/window.c +++ b/src/window.c @@ -379,8 +379,8 @@ void tickit_window_destroy(TickitWindow *win) for(TickitWindow *child = win->first_child; child; /**/) { TickitWindow *next = child->next; - tickit_window_unref(child); child->parent = NULL; + tickit_window_unref(child); child = next; }