From f1f702a5ecd97ebe3490f567a5d39ddc3c83a0fc Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Sun, 3 Mar 2013 20:32:27 +0000 Subject: [PATCH] OSX/locale: fix compile on older xcode by not using toll-free-bridging, which needs ARC --- intern/ghost/intern/GHOST_SystemCocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index bc215ae4914..35051903a51 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -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]; }