liberty-xui: clear a linked list after freeing it
Alpine 3.23 Success
OpenBSD 7.8 Success

This is basically masking a use-after-free somewhere else,
but it also doesn't hurt anything.
This commit is contained in:
2026-05-30 20:03:08 +02:00
parent d7c70bd43a
commit eb01667896
+1
View File
@@ -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);
}