summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-02-20 17:23:15 +0100
committerBastien Nocera <hadess@hadess.net>2013-02-20 18:02:48 +0100
commitfa022622d2c69da2db6811c6fbb3bcefd292c967 (patch)
tree663539dce2d45d4d0d8cc2bae4534fdf0045b5ed
parentde1b612cc0b8a4aa61eaf0e81ace6d59814c0b18 (diff)
downloadgnome-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.c2
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 ();
}