ui/common/object.c

branch
newapi
changeset 178
7c3ff86ee9d4
parent 174
0358f1d9c506
child 328
059cba080ab4
--- a/ui/common/object.c	Sun Apr 16 10:20:21 2023 +0200
+++ b/ui/common/object.c	Tue May 23 11:11:28 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