[gnome-desktop] Fix a segfault
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Fix a segfault
- Date: Thu, 4 Mar 2010 18:01:49 +0000 (UTC)
commit e9e1abb9b1a4b973147da11f1c53735596385f8b
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 4 12:58:57 2010 -0500
Fix a segfault
Since output_free() frees display_name, we always have to dupe it.
libgnome-desktop/gnome-rr-config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-config.c b/libgnome-desktop/gnome-rr-config.c
index 4e707e5..5568fe2 100644
--- a/libgnome-desktop/gnome-rr-config.c
+++ b/libgnome-desktop/gnome-rr-config.c
@@ -497,7 +497,7 @@ gnome_rr_config_new_current (GnomeRRScreen *screen)
}
if (gnome_rr_output_is_laptop (rr_output))
- output->display_name = _("Laptop");
+ output->display_name = g_strdup (_("Laptop"));
else
output->display_name = make_display_name (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]