From 04722e11aa4a19aea4cae98f6e68e1dd394e47b4 Mon Sep 17 00:00:00 2001 From: cbatson Date: Mon, 26 Jan 2015 08:11:53 -0800 Subject: [PATCH] resolves https://github.com/openfl/lime/issues/327 --- legacy/project/src/iPhone/System.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/project/src/iPhone/System.mm b/legacy/project/src/iPhone/System.mm index 84ce64d61..828775d20 100644 --- a/legacy/project/src/iPhone/System.mm +++ b/legacy/project/src/iPhone/System.mm @@ -22,13 +22,13 @@ bool LaunchBrowser(const char *inUtf8URL) std::string CapabilitiesGetLanguage() { #ifndef OBJC_ARC - //NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; #endif NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0]; std::string result(language?[language UTF8String]:""); #ifndef OBJC_ARC - [language release]; - //[pool drain]; + //[language release]; + [pool drain]; #endif return result; }