OSX/locale: fix compile on older xcode by not using toll-free-bridging, which needs ARC
This commit is contained in:
@@ -584,7 +584,8 @@ GHOST_SystemCocoa::GHOST_SystemCocoa()
|
|||||||
|
|
||||||
//Get current locale
|
//Get current locale
|
||||||
CFLocaleRef myCFLocale = CFLocaleCopyCurrent();
|
CFLocaleRef myCFLocale = CFLocaleCopyCurrent();
|
||||||
NSLocale *myNSLocale = (NSLocale *)CFBridgingRelease(myCFLocale);
|
NSLocale * myNSLocale = (NSLocale *) myCFLocale;
|
||||||
|
[myNSLocale autorelease];
|
||||||
NSString *nsIdentifier = [myNSLocale localeIdentifier];
|
NSString *nsIdentifier = [myNSLocale localeIdentifier];
|
||||||
user_locale = [nsIdentifier UTF8String];
|
user_locale = [nsIdentifier UTF8String];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user