[gnome-control-center/gnome-3-8] 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/gnome-3-8] user-accounts: Fix possible free of unowned string
- Date: Wed, 20 Feb 2013 17:03:29 +0000 (UTC)
commit abe5ebdd813ef550e92dc26591d5f960eb3e70cd
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]