diff -r b9767cb5b06b -r d2bd73d28ff1 ui/gtk/button.c --- a/ui/gtk/button.c Fri Nov 29 22:21:36 2024 +0100 +++ b/ui/gtk/button.c Thu Dec 12 20:01:43 2024 +0100 @@ -398,12 +398,14 @@ } UiRadioButtonData; static void destroy_radiobutton(GtkWidget *w, UiRadioButtonData *data) { - ui_destroy_vardata(w, data->eventdata); if(data->first) { + ui_destroy_vardata(w, data->eventdata); g_slist_free(data->value->obj); data->value->obj = NULL; data->value->get = NULL; data->value->set = NULL; + } else { + free(data->eventdata); } free(data); }