ui/common/object.c

branch
newapi
changeset 174
0358f1d9c506
parent 140
c03c338a7dcf
--- a/ui/common/object.c	Sat Apr 15 21:06:45 2023 +0200
+++ b/ui/common/object.c	Mon May 22 16:17:26 2023 +0200
@@ -53,7 +53,7 @@
 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) {
     UiContext *ctx = toplevel->ctx;
     
-    UiObject *newobj = ucx_mempool_calloc(ctx->mempool, 1, sizeof(UiObject));
+    UiObject *newobj = cxCalloc(ctx->allocator, 1, sizeof(UiObject));
     newobj->ctx = ctx;
     newobj->widget = widget;
     

mercurial