Don't leak pixbufs. (#352264, Ross Burton)
2006-08-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data): Don't leak pixbufs. (#352264, Ross Burton)
This commit is contained in:
parent
01aa0a152a
commit
3fb5819e11
@ -1,5 +1,8 @@
|
||||
2006-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkstatusicon.c (gtk_status_icon_reset_image_data):
|
||||
Don't leak pixbufs. (#352264, Ross Burton)
|
||||
|
||||
* gtk/gtklinkbutton.c (set_link_underline): Don't leak
|
||||
PangoAttributes. (#352391, Paolo Borelli)
|
||||
|
||||
|
@ -981,9 +981,6 @@ gtk_status_icon_reset_image_data (GtkStatusIcon *status_icon)
|
||||
{
|
||||
GtkStatusIconPrivate *priv = status_icon->priv;
|
||||
|
||||
priv->storage_type = GTK_IMAGE_EMPTY;
|
||||
g_object_notify (G_OBJECT (status_icon), "storage-type");
|
||||
|
||||
switch (priv->storage_type)
|
||||
{
|
||||
case GTK_IMAGE_PIXBUF:
|
||||
@ -1013,6 +1010,9 @@ gtk_status_icon_reset_image_data (GtkStatusIcon *status_icon)
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
|
||||
priv->storage_type = GTK_IMAGE_EMPTY;
|
||||
g_object_notify (G_OBJECT (status_icon), "storage-type");
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user