From 3cd1cb53a0bccecf5c3d429255d41987d16d4727 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Thu, 1 Oct 2020 22:18:39 +0300 Subject: iOS: Refactoring Enabled ARC for iOS. Weakify/Strongify macros for objc blocks. Removed old version checks. Specific types for ObjC++ modules to exclude unneeded bridging. Separate DeviceMetrics class for device specific data. Replaced old/deprecated functionality. --- modules/mono/mono_gd/support/ios_support.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/mono/mono_gd') diff --git a/modules/mono/mono_gd/support/ios_support.mm b/modules/mono/mono_gd/support/ios_support.mm index e3d1a647fd..dc23c06eba 100644 --- a/modules/mono/mono_gd/support/ios_support.mm +++ b/modules/mono/mono_gd/support/ios_support.mm @@ -131,8 +131,7 @@ GD_PINVOKE_EXPORT void *xamarin_timezone_get_data(const char *p_name, uint32_t * NSTimeZone *tz = nil; if (p_name) { NSString *n = [[NSString alloc] initWithUTF8String:p_name]; - tz = [[[NSTimeZone alloc] initWithName:n] autorelease]; - [n release]; + tz = [[NSTimeZone alloc] initWithName:n]; } else { tz = [NSTimeZone localTimeZone]; } -- cgit v1.2.3