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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user