fixed crash in icon list
authorVladimir Nadvornik <nadvornik@suse.cz>
Tue, 28 Aug 2012 16:48:10 +0000 (18:48 +0200)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 28 Aug 2012 16:50:37 +0000 (18:50 +0200)
src/view_file_icon.c

index 007a69d..1a7fe3c 100644 (file)
@@ -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;