Skip to content

Commit

Permalink
Fix two memory leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 5, 2008
1 parent 6c35f9d commit 37193c2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/view_file_icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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;
Expand Down

0 comments on commit 37193c2

Please sign in to comment.