diff -r 8e7c57c23133 -r 5360027fb282 ui/common/context.c --- a/ui/common/context.c Fri Nov 15 21:50:20 2024 +0100 +++ b/ui/common/context.c Sun Nov 17 15:19:32 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) {