[v2] ARM64 fixes

This commit is contained in:
Lea Anthony 2021-06-29 23:45:05 +10:00
commit 3de38003bf
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405
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;
}