From 61d6fa97cce2769fe8867e4fbf0de14ab42fd633 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sun, 29 Sep 2019 13:45:47 +0200 Subject: Fix: [OSX] Wrong allocator usage for creating a CFString. --- src/os/macosx/string_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/macosx') diff --git a/src/os/macosx/string_osx.cpp b/src/os/macosx/string_osx.cpp index 4c33d5497..6e5916e7c 100644 --- a/src/os/macosx/string_osx.cpp +++ b/src/os/macosx/string_osx.cpp @@ -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); } -- cgit v1.2.3-70-g09d2