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