OSX/locale: fix compile on older xcode by not using toll-free-bridging, which needs ARC

This commit is contained in:
Jens Verwiebe 2013-03-03 20:32:27 +00:00
parent 34b30f8474
commit f1f702a5ec

@ -584,7 +584,8 @@ GHOST_SystemCocoa::GHOST_SystemCocoa()
//Get current locale
CFLocaleRef myCFLocale = CFLocaleCopyCurrent();
NSLocale *myNSLocale = (NSLocale *)CFBridgingRelease(myCFLocale);
NSLocale * myNSLocale = (NSLocale *) myCFLocale;
[myNSLocale autorelease];
NSString *nsIdentifier = [myNSLocale localeIdentifier];
user_locale = [nsIdentifier UTF8String];
}