ui/common/object.c

branch
newapi
changeset 178
7c3ff86ee9d4
parent 174
0358f1d9c506
child 328
059cba080ab4
equal deleted inserted replaced
177:e79a60b3a7cb 178:7c3ff86ee9d4
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