diff options
author | Joe Moon <joe@xoxomoon.com> | 2018-04-27 17:07:12 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-04-27 17:36:39 -0700 |
commit | abe678c68668d5d3a44ef6aa83f31446ee25bb5c (patch) | |
tree | c425a9a2032a7f3381c7e3aa8fcfef721afacad2 | |
parent | 1b7ffea136f55236729258ddbc6841282de91ae9 (diff) | |
download | alacritty-abe678c68668d5d3a44ef6aa83f31446ee25bb5c.tar.gz alacritty-abe678c68668d5d3a44ef6aa83f31446ee25bb5c.zip |
macOS: fixes segfault on nightly
fixes #1264
-rw-r--r-- | src/locale.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locale.rs b/src/locale.rs index 03ae99d3..da5929e4 100644 --- a/src/locale.rs +++ b/src/locale.rs @@ -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"; |