diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-02-20 17:23:15 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-02-20 18:02:48 +0100 |
commit | fa022622d2c69da2db6811c6fbb3bcefd292c967 (patch) | |
tree | 663539dce2d45d4d0d8cc2bae4534fdf0045b5ed | |
parent | de1b612cc0b8a4aa61eaf0e81ace6d59814c0b18 (diff) | |
download | gnome-control-center-fa022622d2c69da2db6811c6fbb3bcefd292c967.tar.gz |
user-accounts: Fix possible free of unowned string
And the subsequent crasher.
-rw-r--r-- | panels/user-accounts/um-user-panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c index 89797c74c..d14de738d 100644 --- a/panels/user-accounts/um-user-panel.c +++ b/panels/user-accounts/um-user-panel.c @@ -770,7 +770,7 @@ language_response (GtkDialog *dialog, act_user_set_language (user, lang); } else { - lang = act_user_get_language (user); + lang = g_strdup (act_user_get_language (user)); if (!lang) { lang = cc_common_language_get_current_language (); } |