# HG changeset patch # User Olaf Wintermann # Date 1732995196 -3600 # Node ID b59935b2de798d4dbe9f00f7d5cfa7698510b8b1 # Parent 96a055be7f0b24e07f44d77f1acdb073ba1119b4 fix radiobutton destroy callback (GTK) diff -r 96a055be7f0b -r b59935b2de79 ui/gtk/button.c --- a/ui/gtk/button.c Sat Nov 30 20:13:09 2024 +0100 +++ b/ui/gtk/button.c Sat Nov 30 20:33:16 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); }