Mercurial > geeqie
changeset 582:8f696e43873d
Fix two memory leaks.
author | zas_ |
---|---|
date | Mon, 05 May 2008 08:15:52 +0000 |
parents | 9b43b8256afe |
children | de3e2bc22336 |
files | src/view_file_icon.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;