ui/common/context.c

changeset 440
7c4b9cba09ca
parent 420
28a5920bebe0
--- a/ui/common/context.c	Sun Jan 05 17:41:39 2025 +0100
+++ b/ui/common/context.c	Sun Jan 05 22:00:39 2025 +0100
@@ -164,7 +164,7 @@
         ctx->detach_document2(ctx, doc);
     }
     
-    cxListDestroy(ls);
+    cxListFree(ls);
 }
 
 static UiVar* ctx_getvar(UiContext *ctx, CxHashKey key) {
@@ -466,7 +466,7 @@
 }
 
 UIEXPORT void ui_context_destroy(UiContext *ctx) {
-    cxMempoolDestroy(ctx->mp);
+    cxMempoolFree(ctx->mp);
 }
 
 
@@ -535,7 +535,7 @@
     
     uic_add_group_widget(ctx, widget, enable, groups);
     
-    cxListDestroy(groups);
+    cxListFree(groups);
 }
 
 size_t uic_group_array_size(const int *groups) {

mercurial