diff -r e79a60b3a7cb -r 7c3ff86ee9d4 ui/motif/window.c --- a/ui/motif/window.c Sun Apr 16 10:20:21 2023 +0200 +++ b/ui/motif/window.c Tue May 23 11:11:28 2023 +0200 @@ -36,6 +36,8 @@ #include "../ui/window.h" #include "../common/context.h" +#include + static int nwindows = 0; static int window_default_width = 600; @@ -62,9 +64,10 @@ } static UiObject* create_window(char *title, void *window_data, UiBool simple) { - UcxMempool *mp = ucx_mempool_new(256); - UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); - obj->ctx = uic_context(obj, mp); + CxMempool *mp = cxBasicMempoolCreate(256); + const CxAllocator *a = mp->allocator; + UiObject *obj = cxCalloc(a, 1, sizeof(UiObject)); + obj->ctx = uic_context(obj, a); obj->window = window_data; Arg args[16];