diff --git a/v2/internal/ffenestri/ffenestri_darwin.c b/v2/internal/ffenestri/ffenestri_darwin.c index 38748e922..d2f733fb0 100644 --- a/v2/internal/ffenestri/ffenestri_darwin.c +++ b/v2/internal/ffenestri/ffenestri_darwin.c @@ -1808,7 +1808,7 @@ void* NewApplication(const char *title, int width, int height, int resizable, in result->running = false; - result->pool = objc_msgSend(c("NSAutoreleasePool"), s("new")); + result->pool = msg_reg(c("NSAutoreleasePool"), s("new")); return (void*) result; } diff --git a/v2/internal/ffenestri/menu_darwin.c b/v2/internal/ffenestri/menu_darwin.c index e3cc6f82d..282d3331e 100644 --- a/v2/internal/ffenestri/menu_darwin.c +++ b/v2/internal/ffenestri/menu_darwin.c @@ -375,7 +375,7 @@ id createMenu(id title) { id menu = ALLOC("NSMenu"); msg_id(menu, s("initWithTitle:"), title); msg_bool(menu, s("setAutoenablesItems:"), NO); - msg(menu, s("autorelease")); + msg_reg(menu, s("autorelease")); return menu; }