diff options
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 69cd059b78..1f830f0d00 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -1610,10 +1610,15 @@ remove_file (GtkFileSystemModel *model, node = get_node (model, id); node_set_visible (model, id, FALSE); + + g_hash_table_remove (model->file_lookup, file); g_object_unref (node->file); + if (node->info) g_object_unref (node->info); + g_array_remove_index (model->files, id); + /* FMQ: do we need to resort? */ } /** |