diff -r a91e3f6db7cf -r 80edb1a93f7a ui/common/context.c --- a/ui/common/context.c Sun Nov 17 10:37:06 2024 +0100 +++ b/ui/common/context.c Sun Nov 17 15:21:50 2024 +0100 @@ -557,7 +557,11 @@ } UIEXPORT void *ui_allocator(UiContext *ctx) { - return ctx ? (void*)ctx->allocator : NULL; + return (void*)ctx->allocator; +} + +void* ui_cx_mempool(UiContext *ctx) { + return ctx->mp; } void* ui_malloc(UiContext *ctx, size_t size) {