From 741637e625529af8886f769e4810b5faddecae87 Mon Sep 17 00:00:00 2001 From: Rose Date: Sun, 22 Sep 2024 16:05:30 -0400 Subject: [PATCH] Remove xpc_release for ARC xpc objects are handled by ARC. --- iOS/GBViewController.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/iOS/GBViewController.m b/iOS/GBViewController.m index 1bf2f2b..439040b 100644 --- a/iOS/GBViewController.m +++ b/iOS/GBViewController.m @@ -612,13 +612,10 @@ static void rumbleCallback(GB_gameboy_t *gb, double amp) const char *_teamIdentifier = xpc_dictionary_get_string(entitlements, "com.apple.developer.team-identifier"); NSString *teamIdentifier = _teamIdentifier? @(_teamIdentifier) : nil; - xpc_release(entitlements); - if (!entIdentifier) { // No identifier. Installed using a jailbreak, we're fine. return; } - - + if (teamIdentifier && [entIdentifier hasPrefix:[teamIdentifier stringByAppendingString:@"."]]) { entIdentifier = [entIdentifier substringFromIndex:teamIdentifier.length + 1]; }