diff --git a/BBGE/Localization.cpp b/BBGE/Localization.cpp index 24c5417..333fc2f 100644 --- a/BBGE/Localization.cpp +++ b/BBGE/Localization.cpp @@ -7,7 +7,6 @@ #endif #ifdef BBGE_BUILD_MACOSX -#include #include #include @@ -112,13 +111,11 @@ std::string getSystemLocale() if ((buf = (CFStringRef)CFLocaleGetValue(locale, kCFLocaleLanguageCode)) != NULL) { localeStr = _CFToStdString(buf); - CFRelease(buf); if ((buf = (CFStringRef)CFLocaleGetValue(locale, kCFLocaleCountryCode)) != NULL) { localeStr += "_"; localeStr += _CFToStdString(buf); - CFRelease(buf); } }