diff -r 9136db051f28 -r eda1ff20cb27 ui/server/button.c --- a/ui/server/button.c Sun Dec 28 19:01:05 2025 +0100 +++ b/ui/server/button.c Mon Dec 29 17:46:10 2025 +0100 @@ -37,7 +37,7 @@ cxmutstr ui_button_args_to_string(UiContext *ctx, UiButtonArgs *args) { CxBuffer buf; - cxBufferInit(&buf, NULL, 256, ctx->allocator, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS); + cxBufferInit(&buf, ctx->allocator, NULL, 256, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS); cxBufferPutString(&buf, "{"); @@ -54,7 +54,7 @@ cxmutstr ui_toggle_args_to_string(UiContext *ctx, UiToggleArgs *args, cxmutstr value) { CxBuffer buf; - cxBufferInit(&buf, NULL, 256, ctx->allocator, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS); + cxBufferInit(&buf, ctx->allocator, NULL, 256, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS); cxBufferPutString(&buf, "{"); @@ -89,7 +89,7 @@ cxmutstr ui_button_serialize(UiCallbackWidget *w) { CxBuffer buf; - cxBufferInit(&buf, NULL, 1024, NULL, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS); + cxBufferInit(&buf, cxDefaultAllocator, NULL, 1024, CX_BUFFER_AUTO_EXTEND | CX_BUFFER_FREE_CONTENTS); cxBufferPutString(&buf, "{"); ui_serialize_type_obj_id(&w->widget, &buf);