# HG changeset patch # User zas_ # Date 1209975352 0 # Node ID 8f696e43873d99202a00492ee40075e068c374cb # Parent 9b43b8256afe447011a359c50f0d7d4abd88ddab Fix two memory leaks. diff -r 9b43b8256afe -r 8f696e43873d src/view_file_icon.c --- a/src/view_file_icon.c Mon May 05 07:46:32 2008 +0000 +++ b/src/view_file_icon.c Mon May 05 08:15:52 2008 +0000 @@ -1687,15 +1687,16 @@ list = vficon_add_row(vf, &iter); while (work && list) { - IconData *id; - - id = work->data; + IconData *id = work->data; + work = work->next; + id->row = row; - list->data = work->data; + list->data = id; list = list->next; - work = work->next; } + + g_list_free(list); } if (visible_id && @@ -1713,6 +1714,7 @@ { tree_view_row_make_visible(GTK_TREE_VIEW(vf->listview), &iter, FALSE); } + g_list_free(list); } VFICON_INFO(vf, rows) = row + 1;