ui/common/object.c

branch
newapi
changeset 174
0358f1d9c506
parent 140
c03c338a7dcf
equal deleted inserted replaced
173:809581724cc7 174:0358f1d9c506
51 51
52 52
53 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) { 53 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) {
54 UiContext *ctx = toplevel->ctx; 54 UiContext *ctx = toplevel->ctx;
55 55
56 UiObject *newobj = ucx_mempool_calloc(ctx->mempool, 1, sizeof(UiObject)); 56 UiObject *newobj = cxCalloc(ctx->allocator, 1, sizeof(UiObject));
57 newobj->ctx = ctx; 57 newobj->ctx = ctx;
58 newobj->widget = widget; 58 newobj->widget = widget;
59 59
60 return newobj; 60 return newobj;
61 } 61 }

mercurial