ui/common/context.c

changeset 75
73c8a3780c72
parent 69
d8991e166f2a
child 77
5de33c2d94c6
--- a/ui/common/context.c	Tue Oct 29 20:30:00 2024 +0100
+++ b/ui/common/context.c	Sun Nov 10 09:12:30 2024 +0100
@@ -201,7 +201,7 @@
     var->from = NULL;
     var->from_ctx = ctx;
 
-    cxMempoolRegister(ctx->mp, var, (cx_destructor_func)uic_unbind_var);
+    cxMempoolSetDestructor(var, (cx_destructor_func)uic_unbind_var);
 
     if(!ctx->vars_unbound) {
         ctx->vars_unbound = cxHashMapCreate(ctx->allocator, CX_STORE_POINTERS, 16);

mercurial