From 8b8c885f66ca81096fd18a91f67627bb92ec0f18 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Tue, 28 Aug 2012 18:48:10 +0200 Subject: [PATCH] fixed crash in icon list --- src/view_file_icon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/view_file_icon.c b/src/view_file_icon.c index 007a69d3..1a7fe3c4 100644 --- a/src/view_file_icon.c +++ b/src/view_file_icon.c @@ -1557,6 +1557,10 @@ static gboolean vficon_destroy_node_cb(GtkTreeModel *store, GtkTreePath *tpath, GList *list; gtk_tree_model_get(store, iter, FILE_COLUMN_POINTER, &list, -1); + + /* it seems that gtk_list_store_clear may call some callbacks + that use the column. Set the pointer to NULL to be safe. */ + gtk_list_store_set(GTK_LIST_STORE(store), iter, FILE_COLUMN_POINTER, NULL, -1); g_list_free(list); return FALSE; -- 2.20.1