[gtk+/gtk-2-24] filechooser: Fix leak when a shortcut disappears from the filesystem



commit 3b82c12d3e28272fa65e37ffd4a292b09f1783c3
Author: Tilman Sauerbek <tilman code-monkey de>
Date:   Thu May 30 10:21:55 2013 -0500

    filechooser: Fix leak when a shortcut disappears from the filesystem
    
    https://bugzilla.gnome.org/show_bug.cgi?id=432386

 gtk/gtkfilechooserdefault.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index dc7b86b..2a75365 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -1482,6 +1482,7 @@ get_file_info_finished (GCancellable *cancellable,
 
   if (!info)
     {
+      shortcuts_free_row_data (request->impl, &iter);
       gtk_list_store_remove (request->impl->shortcuts_model, &iter);
       shortcuts_update_count (request->impl, request->type, -1);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]