Don't leak PangoAttributes. (#352391, Paolo Borelli)

2006-08-26  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklinkbutton.c (set_link_underline): Don't leak
	PangoAttributes.  (#352391, Paolo Borelli)
This commit is contained in:
Matthias Clasen 2006-08-26 06:15:40 +00:00 committed by Matthias Clasen
parent b14b866c3d
commit 01aa0a152a
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-08-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklinkbutton.c (set_link_underline): Don't leak
PangoAttributes. (#352391, Paolo Borelli)
2006-08-25 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/Makefile.am:

View File

@ -265,6 +265,7 @@ set_link_underline (GtkLinkButton *link_button)
attributes = pango_attr_list_new ();
pango_attr_list_insert (attributes, uline);
gtk_label_set_attributes (GTK_LABEL (label), attributes);
pango_attr_list_unref (attributes);
}
}