[gtk+/gtk-2-24] GtkFileChooserEntry: Oops, free the temporary dir_part
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] GtkFileChooserEntry: Oops, free the temporary dir_part
- Date: Thu, 10 Mar 2016 21:35:42 +0000 (UTC)
commit bab1c39ec2823b6aaea573364286d371b4477b44
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 10 15:35:34 2016 -0600
GtkFileChooserEntry: Oops, free the temporary dir_part
gtk/gtkfilechooserentry.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index d6e20fa..cac29ba 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -639,10 +639,14 @@ refresh_current_folder_and_file_part (GtkFileChooserEntry *chooser_entry)
}
folder_file = gtk_file_chooser_get_directory_for_text (chooser_entry, text);
+
set_completion_folder (chooser_entry, folder_file, dir_part);
+
if (folder_file)
g_object_unref (folder_file);
+ g_free (dir_part);
+
if (chooser_entry->completion_store &&
(g_strcmp0 (old_file_part, chooser_entry->file_part) != 0))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]