Don't leak the cairo context. Closes bug #307426.

2005-06-13  Kjartan Maraas  <kmaraas@gnome.org>

	* gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
	leak the cairo context. Closes bug #307426.
This commit is contained in:
Kjartan Maraas 2005-06-13 07:57:02 +00:00 committed by Kjartan Maraas
parent 2e3ff48627
commit 58b9aed17a
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
leak the cairo context. Closes bug #307426.
2005-06-13 Matthias Clasen <mclasen@redhat.com>
Make invisible text work a bit better (#66194, patch by

View File

@ -1,3 +1,8 @@
2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
leak the cairo context. Closes bug #307426.
2005-06-13 Matthias Clasen <mclasen@redhat.com>
Make invisible text work a bit better (#66194, patch by

View File

@ -1,3 +1,8 @@
2005-06-13 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
leak the cairo context. Closes bug #307426.
2005-06-13 Matthias Clasen <mclasen@redhat.com>
Make invisible text work a bit better (#66194, patch by

View File

@ -2220,6 +2220,7 @@ calendar_paint_arrow (GtkCalendar *calendar,
gdk_cairo_set_source_color (cr, &widget->style->bg[state]);
cairo_paint (cr);
cairo_destroy (cr);
gdk_drawable_get_size (window, &width, &height);
if (arrow == ARROW_MONTH_LEFT || arrow == ARROW_YEAR_LEFT)