From 688917cdbbbc42678c9bcfd9249fa80119000498 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 2 Sep 2009 15:21:45 -0500 Subject: When removing a file, also remove it from the file_lookup hash table Signed-off-by: Federico Mena Quintero --- gtk/gtkfilesystemmodel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk/gtkfilesystemmodel.c') 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? */ } /** -- cgit v1.2.1