Revert wrong patch rev 676.
authorLaurent Monin <geeqie@norz.org>
Mon, 5 May 2008 09:21:01 +0000 (09:21 +0000)
committerLaurent Monin <geeqie@norz.org>
Mon, 5 May 2008 09:21:01 +0000 (09:21 +0000)
src/view_file_icon.c

index 4c08a10..9ac7608 100644 (file)
@@ -1687,16 +1687,15 @@ static void vficon_populate(ViewFile *vf, gint resize, gint keep_position)
                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 @@ static void vficon_populate(ViewFile *vf, gint resize, gint keep_position)
                        {
                        tree_view_row_make_visible(GTK_TREE_VIEW(vf->listview), &iter, FALSE);
                        }
-               g_list_free(list);
                }
 
        VFICON_INFO(vf, rows) = row + 1;