1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

macOS: fixes segfault on nightly

fixes #1264
This commit is contained in:
Joe Moon 2018-04-27 17:07:12 -07:00 committed by Joe Wilm
parent 1b7ffea136
commit abe678c686

View file

@ -23,11 +23,11 @@ pub fn set_locale_environment() {
let locale_id = unsafe {
let locale_class = Class::get("NSLocale").unwrap();
let locale: *const Object = msg_send![locale_class, currentLocale];
msg_send![locale_class, release];
let _ : () = msg_send![locale_class, release];
let identifier: *const Object = msg_send![locale, localeIdentifier];
msg_send![locale, release];
let _ : () = msg_send![locale, release];
let identifier_str = nsstring_as_str(identifier).to_owned();
msg_send![identifier, release];
let _ : () = msg_send![identifier, release];
identifier_str
};
let locale_id = locale_id + ".UTF-8";