changeset 585:4875d67823b4

Revert wrong patch rev 676.
author zas_
date Mon, 05 May 2008 09:21:01 +0000
parents 4609c84c9ce0
children 905688aa2317
files src/view_file_icon.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file_icon.c	Mon May 05 09:12:07 2008 +0000
+++ b/src/view_file_icon.c	Mon May 05 09:21:01 2008 +0000
@@ -1687,16 +1687,15 @@
 		list = vficon_add_row(vf, &iter);
 		while (work && list)
 			{
-			IconData *id = work->data;
-			work = work->next;
-
+			IconData *id;
+
+			id = work->data;
 			id->row = row;
 
-			list->data = id;
+			list->data = work->data;
 			list = list->next;
+			work = work->next;
 			}
-
-		g_list_free(list);
 		}
 
 	if (visible_id &&
@@ -1714,7 +1713,6 @@
 			{
 			tree_view_row_make_visible(GTK_TREE_VIEW(vf->listview), &iter, FALSE);
 			}
-		g_list_free(list);
 		}
 
 	VFICON_INFO(vf, rows) = row + 1;