diff -r e79a60b3a7cb -r 7c3ff86ee9d4 ui/motif/list.c --- a/ui/motif/list.c Sun Apr 16 10:20:21 2023 +0200 +++ b/ui/motif/list.c Tue May 23 11:11:28 2023 +0200 @@ -61,7 +61,7 @@ ct->add(ct, XtParent(widget)); XtManageChild(widget); - UiListView *listview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListView)); + UiListView *listview = cxMalloc(obj->ctx->allocator, sizeof(UiListView)); listview->widget = widget; listview->list = var; listview->getvalue = getvalue; @@ -72,8 +72,8 @@ XtFree((char *)items); if(f) { - UiListViewEventData *event = ucx_mempool_malloc( - obj->ctx->mempool, + UiListViewEventData *event = cxMalloc( + obj->ctx->allocator, sizeof(UiListViewEventData)); event->event.obj = obj; event->event.userdata = udata; @@ -182,8 +182,8 @@ } UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata) { - UiListView *listview = ucx_mempool_malloc( - obj->ctx->mempool, + UiListView *listview = cxMalloc( + obj->ctx->allocator, sizeof(UiListView)); UiContainer *ct = uic_get_current_container(obj); @@ -204,4 +204,5 @@ ui_listview_update(NULL, listview); + return parent; }