ui/gtk/list.c

changeset 440
7c4b9cba09ca
parent 439
bf7084544cb1
--- a/ui/gtk/list.c	Sun Jan 05 17:41:39 2025 +0100
+++ b/ui/gtk/list.c	Sun Jan 05 22:00:39 2025 +0100
@@ -1500,14 +1500,14 @@
 /* ------------------------------ Source List ------------------------------ */
 
 static void ui_destroy_sourcelist(GtkWidget *w, UiListBox *v) {
-    cxListDestroy(v->sublists);
+    cxListFree(v->sublists);
     free(v);
 }
 
 static void sublist_destroy(UiObject *obj, UiListBoxSubList *sublist) {
     free(sublist->header);
     ui_destroy_boundvar(obj->ctx, sublist->var);
-    cxListDestroy(sublist->widgets);
+    cxListFree(sublist->widgets);
 }
 
 static void listbox_create_header(GtkListBoxRow* row, GtkListBoxRow* before, gpointer user_data) {

mercurial