projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c35f9d
)
Fix two memory leaks.
author
Laurent Monin
<geeqie@norz.org>
Mon, 5 May 2008 08:15:52 +0000
(08:15 +0000)
committer
Laurent Monin
<geeqie@norz.org>
Mon, 5 May 2008 08:15:52 +0000
(08:15 +0000)
src/view_file_icon.c
patch
|
blob
|
history
diff --git
a/src/view_file_icon.c
b/src/view_file_icon.c
index
ab81552
..
6c5283e
100644
(file)
--- a/
src/view_file_icon.c
+++ b/
src/view_file_icon.c
@@
-1687,15
+1687,16
@@
static void vficon_populate(ViewFile *vf, gint resize, gint keep_position)
list = vficon_add_row(vf, &iter);
while (work && list)
{
- IconData *id;
+ IconData *id = work->data;
+ work = work->next;
- id = work->data;
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
@@
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;