changeset 2110:418510ded6c4

fixed crash in icon list
author Vladimir Nadvornik <nadvornik@suse.cz>
date Tue, 28 Aug 2012 18:48:10 +0200
parents 080a2e6f7ba1
children 821cab3e2fd8
files src/view_file_icon.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_icon.c	Tue Aug 21 22:31:05 2012 +0200
+++ b/src/view_file_icon.c	Tue Aug 28 18:48:10 2012 +0200
@@ -1557,6 +1557,10 @@
 	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;