ui/motif/list.c

changeset 964
c563220d9aea
parent 912
06c37c12d149
child 965
5d4419042d9b
--- a/ui/motif/list.c	Sun Dec 07 12:12:02 2025 +0100
+++ b/ui/motif/list.c	Sun Dec 07 12:24:12 2025 +0100
@@ -130,7 +130,11 @@
 }
 
 void ui_listview_destroy(Widget w, UiListView *listview, XtPointer d) {
-    // TODO
+    ui_listselection_free(listview->current_selection);
+    if(listview->model) {
+        ui_model_unref(listview->model);
+    }
+    free(listview);
 }
 
 static void list_callback(UiObject *obj, UiListSelection sel, ui_callback callback, void *userdata) {

mercurial