aboutsummaryrefslogtreecommitdiff
path: root/liberty-xui.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2026-05-30 20:03:08 +0200
committerPřemysl Eric Janouch <p@janouch.name>2026-05-30 20:03:17 +0200
commiteb016678961b9ee7729de0fa3d586673d79ff926 (patch)
tree1c782e7a464dd3a4a992a0669b4f2e2f4b672110 /liberty-xui.c
parentd7c70bd43ab607f9e73653d417ff0fcef2ad2b8a (diff)
downloadliberty-eb016678961b9ee7729de0fa3d586673d79ff926.tar.gz
liberty-eb016678961b9ee7729de0fa3d586673d79ff926.tar.xz
liberty-eb016678961b9ee7729de0fa3d586673d79ff926.zip
liberty-xui: clear a linked list after freeing itHEADorigin/mastermaster
This is basically masking a use-after-free somewhere else, but it also doesn't hurt anything.
Diffstat (limited to 'liberty-xui.c')
-rw-r--r--liberty-xui.c1
1 files changed, 1 insertions, 0 deletions
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);
}