forked from AuroraMiddleware/gtk
Fix a memleak
This commit is contained in:
parent
53a94e60c9
commit
3ddd7aef5a
@ -1,5 +1,8 @@
|
||||
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
|
||||
leak the adjustments. (#348094, Chris Wilson)
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_stop_reorder): Unset
|
||||
the during_reorder flag. (#348049, Sven Herzberg, patch
|
||||
by Benjamin Otte)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
|
||||
leak the adjustments. (#348094, Chris Wilson)
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_stop_reorder): Unset
|
||||
the during_reorder flag. (#348049, Sven Herzberg, patch
|
||||
by Benjamin Otte)
|
||||
|
@ -948,6 +948,18 @@ gtk_icon_view_destroy (GtkObject *object)
|
||||
}
|
||||
|
||||
remove_scroll_timeout (icon_view);
|
||||
|
||||
if (icon_view->priv->hadjustment != NULL)
|
||||
{
|
||||
g_object_unref (icon_view->priv->hadjustment);
|
||||
icon_view->priv->hadjustment = NULL;
|
||||
}
|
||||
|
||||
if (icon_view->priv->vadjustment != NULL)
|
||||
{
|
||||
g_object_unref (icon_view->priv->vadjustment);
|
||||
icon_view->priv->vadjustment = NULL;
|
||||
}
|
||||
|
||||
(* GTK_OBJECT_CLASS (gtk_icon_view_parent_class)->destroy) (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user