From: Vladimir Nadvornik Date: Wed, 29 Aug 2012 21:27:06 +0000 (+0200) Subject: fixed crash in file list X-Git-Tag: v1.2~94 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=2d51dd3a2bc18199726de6ed43fc024001852826 fixed crash in file list --- 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; }