From 2d51dd3a2bc18199726de6ed43fc024001852826 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Wed, 29 Aug 2012 23:27:06 +0200 Subject: [PATCH] fixed crash in file list --- src/view_file_list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/view_file_list.c b/src/view_file_list.c index dc225e4a..06edf9fb 100644 --- a/src/view_file_list.c +++ b/src/view_file_list.c @@ -185,6 +185,10 @@ static gboolean vflist_store_clear_cb(GtkTreeModel *model, GtkTreePath *path, Gt { FileData *fd; gtk_tree_model_get(model, iter, FILE_COLUMN_POINTER, &fd, -1); + + /* it seems that gtk_tree_store_clear may call some callbacks + that use the column. Set the pointer to NULL to be safe. */ + gtk_tree_store_set(GTK_TREE_STORE(model), iter, FILE_COLUMN_POINTER, NULL, -1); file_data_unref(fd); return FALSE; } -- 2.20.1