--- a/ui/gtk/menu.c Sun Jan 05 17:41:39 2025 +0100 +++ b/ui/gtk/menu.c Sun Jan 05 22:00:39 2025 +0100 @@ -131,7 +131,7 @@ CxList *groups = cxArrayListCreateSimple(sizeof(int), i->ngroups); cxListAddArray(groups, i->groups, i->ngroups); uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, groups); - cxListDestroy(groups); + cxListFree(groups); } } @@ -464,7 +464,7 @@ CxList *groups = cxArrayListCreateSimple(sizeof(int), i->ngroups); cxListAddArray(groups, i->groups, i->ngroups); uic_add_group_widget(obj->ctx, action, (ui_enablefunc)action_enable, groups); - cxListDestroy(groups); + cxListFree(groups); } if(i->callback != NULL) {