ui/gtk/menu.c

changeset 440
7c4b9cba09ca
parent 435
883a569cc9a3
--- 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) {

mercurial