diff options
author | Sergey Minakov <naithar@icloud.com> | 2020-10-01 22:18:39 +0300 |
---|---|---|
committer | Sergey Minakov <naithar@icloud.com> | 2020-10-02 15:04:51 +0300 |
commit | 3cd1cb53a0bccecf5c3d429255d41987d16d4727 (patch) | |
tree | b284f0ea092705a6675e0f2c71b752b1315f91a1 /modules/mono/mono_gd/support | |
parent | 19f72beebbf1d233eb2dd345ed70a5ac143e2353 (diff) |
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.
Diffstat (limited to 'modules/mono/mono_gd/support')
-rw-r--r-- | modules/mono/mono_gd/support/ios_support.mm | 3 |
1 files changed, 1 insertions, 2 deletions
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]; } |