From eb016678961b9ee7729de0fa3d586673d79ff926 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 30 May 2026 20:03:08 +0200 Subject: liberty-xui: clear a linked list after freeing it This is basically masking a use-after-free somewhere else, but it also doesn't hurt anything. --- liberty-xui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'liberty-xui.c') diff --git a/liberty-xui.c b/liberty-xui.c index ca7fa88..160c6a3 100644 --- a/liberty-xui.c +++ b/liberty-xui.c @@ -3099,6 +3099,7 @@ xui_stop (void) g_xui.ui->destroy (); LIST_FOR_EACH (struct widget, w, g_xui.widgets) widget_destroy (w); + g_xui.widgets = NULL; termo_destroy (g_xui.tk); } -- cgit v1.3.1