[v2] ARM64 fixes

This commit is contained in:
Lea Anthony
2021-06-29 23:45:05 +10:00
parent 418438b762
commit 3de38003bf
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}