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; }