1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

Fix: [OSX] Wrong allocator usage for creating a CFString.

This commit is contained in:
Michael Lutz
2019-09-29 13:45:47 +02:00
parent ceb29cef85
commit 61d6fa97cc

View File

@@ -284,7 +284,7 @@ void MacOSSetCurrentLocaleName(const char *iso_code)
if (_osx_locale != nullptr) CFRelease(_osx_locale);
CFStringRef iso = CFStringCreateWithCString(kCFAllocatorNull, iso_code, kCFStringEncodingUTF8);
CFStringRef iso = CFStringCreateWithCString(kCFAllocatorDefault, iso_code, kCFStringEncodingUTF8);
_osx_locale = CFLocaleCreate(kCFAllocatorDefault, iso);
CFRelease(iso);
}