From c45e1a4db0214bd42a10b1f7ef89d294c667d30b Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Sat, 10 Jan 2015 00:20:46 -0800 Subject: [PATCH] Fix crash in iOS Capabilities.language (fixes #464) --- legacy/project/src/iPhone/System.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/project/src/iPhone/System.mm b/legacy/project/src/iPhone/System.mm index a1319c537..84ce64d61 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]; + //[pool drain]; #endif return result; }