From db8f0cbfbccccab53f43872307079eb43625726d Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 15 Apr 2003 21:43:05 +0000 Subject: Unref the metrics. (e_calendar_item_draw): Re-use the widget's context 2003-04-15 Hans Petter Jansson * e-calendar-item.c (e_calendar_item_update): Unref the metrics. (e_calendar_item_draw): Re-use the widget's context instead of creating a new one. Unref the metrics. (e_calendar_item_draw_month): Unref the metrics. Don't create the layout where it might be leaked by an early return. Unref the layout before returning if we're outside the clip area. (e_calendar_item_draw_day_numbers): Unref the metrics. (e_calendar_item_recalc_sizes): Unref the metrics. (e_calendar_item_convert_position_to_day): Unref the metrics. * e-calendar.c (e_calendar_size_allocate): Unref the metrics. svn path=/trunk/; revision=20855 --- widgets/misc/e-calendar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets/misc/e-calendar.c') diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c index 73ddd421cc..ec720e9047 100644 --- a/widgets/misc/e-calendar.c +++ b/widgets/misc/e-calendar.c @@ -358,6 +358,8 @@ e_calendar_size_allocate (GtkWidget *widget, "width", arrow_button_size, "height", arrow_button_size, NULL); + + pango_font_metrics_unref (font_metrics); } void -- cgit