From: Vladimir Nadvornik Date: Tue, 28 Aug 2012 16:48:10 +0000 (+0200) Subject: fixed crash in icon list X-Git-Tag: v1.2~96 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=8b8c885f66ca81096fd18a91f67627bb92ec0f18 fixed crash in icon list --- 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;