[gnome-control-center] user-accounts: Fix possible free of unowned string
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Fix possible free of unowned string
- Date: Wed, 20 Feb 2013 17:04:22 +0000 (UTC)
commit fa022622d2c69da2db6811c6fbb3bcefd292c967
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 20 17:23:15 2013 +0100
user-accounts: Fix possible free of unowned string
And the subsequent crasher.
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 89797c7..d14de73 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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]