2008-11-28 [colin] 3.6.1cvs52

* src/mimeview.c
		Fix leak
This commit is contained in:
Colin Leroy 2008-11-28 22:35:51 +00:00
parent e99295f22a
commit dcd4069361
4 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2008-11-28 [colin] 3.6.1cvs52
* src/mimeview.c
Fix leak
2008-11-28 [colin] 3.6.1cvs51
* po/fr.po

View file

@ -3633,3 +3633,4 @@
( cvs diff -u -r 1.6.2.9 -r 1.6.2.10 po/Makefile.in.in; ) > 3.6.1cvs49.patchset
( cvs diff -u -r 1.274.2.291 -r 1.274.2.292 src/mainwindow.c; ) > 3.6.1cvs50.patchset
( cvs diff -u -r 1.42.2.43 -r 1.42.2.44 po/fr.po; ) > 3.6.1cvs51.patchset
( cvs diff -u -r 1.83.2.148 -r 1.83.2.149 src/mimeview.c; ) > 3.6.1cvs52.patchset

View file

@ -11,7 +11,7 @@ MINOR_VERSION=6
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=51
EXTRA_VERSION=52
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=

View file

@ -2377,15 +2377,15 @@ static void icon_list_append_icon (MimeView *mimeview, MimeInfo *mimeinfo)
static void icon_list_clear (MimeView *mimeview)
{
GList *child;
GList *child, *orig;
GtkAdjustment *adj;
child = gtk_container_get_children(GTK_CONTAINER(mimeview->icon_vbox));
for (; child != NULL; child = g_list_next(child)) {
orig = gtk_container_get_children(GTK_CONTAINER(mimeview->icon_vbox));
for (child = orig; child != NULL; child = g_list_next(child)) {
gtkut_container_remove(GTK_CONTAINER(mimeview->icon_vbox),
GTK_WIDGET(child->data));
}
g_list_free(child);
g_list_free(orig);
mimeview->icon_count = 0;
adj = gtk_layout_get_vadjustment(GTK_LAYOUT(mimeview->icon_scroll));
gtk_adjustment_set_value(adj, adj->lower);