Don't leak pango_font_description object (#160214, Frederic Crozat).

2004-12-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmessagedialog.c: (setup_primary_label_font):
	Don't leak pango_font_description object (#160214, Frederic Crozat).
This commit is contained in:
Matthias Clasen 2004-12-02 14:16:16 +00:00 committed by Matthias Clasen
parent 0a100408da
commit 69055d826e
5 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmessagedialog.c: (setup_primary_label_font):
Don't leak pango_font_description object (#160214, Frederic Crozat).
2004-12-01 Matthias Clasen <mclasen@redhat.com> 2004-12-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the * gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the

View File

@ -1,3 +1,8 @@
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmessagedialog.c: (setup_primary_label_font):
Don't leak pango_font_description object (#160214, Frederic Crozat).
2004-12-01 Matthias Clasen <mclasen@redhat.com> 2004-12-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the * gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the

View File

@ -1,3 +1,8 @@
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmessagedialog.c: (setup_primary_label_font):
Don't leak pango_font_description object (#160214, Frederic Crozat).
2004-12-01 Matthias Clasen <mclasen@redhat.com> 2004-12-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the * gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the

View File

@ -1,3 +1,8 @@
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmessagedialog.c: (setup_primary_label_font):
Don't leak pango_font_description object (#160214, Frederic Crozat).
2004-12-01 Matthias Clasen <mclasen@redhat.com> 2004-12-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the * gtk/gtkiconview.c (gtk_icon_view_row_changed): Handle the

View File

@ -265,6 +265,7 @@ setup_primary_label_font (GtkMessageDialog *dialog)
pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD); pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
pango_font_description_set_size (font_desc, size * PANGO_SCALE_LARGE); pango_font_description_set_size (font_desc, size * PANGO_SCALE_LARGE);
gtk_widget_modify_font (dialog->label, font_desc); gtk_widget_modify_font (dialog->label, font_desc);
pango_font_description_free (font_desc);
} }
} }