--- a/ui/common/context.c Thu Dec 12 20:01:43 2024 +0100 +++ b/ui/common/context.c Mon Jan 06 22:22:55 2025 +0100 @@ -100,6 +100,7 @@ if(var_ctx->vars_unbound && cxMapSize(var_ctx->vars_unbound) > 0) { CxIterator i = cxMapIterator(var_ctx->vars_unbound); cx_foreach(CxMapEntry*, entry, i) { + printf("attach %s\n", entry->key->data); UiVar *var = entry->value; UiVar *docvar = cxMapGet(doc_ctx->vars, *entry->key); if(docvar) { @@ -163,7 +164,7 @@ ctx->detach_document2(ctx, doc); } - cxListDestroy(ls); + cxListFree(ls); } static UiVar* ctx_getvar(UiContext *ctx, CxHashKey key) { @@ -465,7 +466,7 @@ } UIEXPORT void ui_context_destroy(UiContext *ctx) { - cxMempoolDestroy(ctx->mp); + cxMempoolFree(ctx->mp); } @@ -534,7 +535,7 @@ uic_add_group_widget(ctx, widget, enable, groups); - cxListDestroy(groups); + cxListFree(groups); } size_t uic_group_array_size(const int *groups) {