From f815c34a2b975ec7a74798850dd05527a6d80db7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 16 Jul 2008 13:51:56 +0000 Subject: Don't free a GFile. Reported by Sebastien Bacher * gtk/gtkfilesystem.c (_gtk_file_system_set_bookmark_label): Don't free a GFile. Reported by Sebastien Bacher svn path=/trunk/; revision=20843 --- ChangeLog | 7 +++++++ gtk/gtkfilesystem.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6a5d882bd..41280b3e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-15 Matthias Clasen + + Bug 543244 – crashes when renaming a bookmark + + * gtk/gtkfilesystem.c (_gtk_file_system_set_bookmark_label): Don't + free a GFile. Reported by Sebastien Bacher + 2008-07-15 Matthias Clasen Bug 339591 – Detect list of availible cover pages diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c index 8f8e9c833..c462b3f44 100644 --- a/gtk/gtkfilesystem.c +++ b/gtk/gtkfilesystem.c @@ -1127,7 +1127,7 @@ _gtk_file_system_set_bookmark_label (GtkFileSystem *file_system, if (g_file_equal (file, bookmark->file)) { - g_free (bookmark->file); + g_free (bookmark->label); bookmark->label = g_strdup (label); changed = TRUE; break; -- cgit v1.2.1