# HG changeset patch # User Olaf Wintermann # Date 1730279687 -3600 # Node ID 4657ec1229f2555d5e641894ecfd9c8d33039959 # Parent 8c028965410aa5ec50a01f0d5e84911af0a4a60c fix incorrect UiVar destruction diff -r 8c028965410a -r 4657ec1229f2 ui/common/context.c --- a/ui/common/context.c Tue Oct 29 17:52:06 2024 +0100 +++ b/ui/common/context.c Wed Oct 30 10:14:47 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);