From e841c0622c5c718be893c9d47ade55fc4151c6c9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 8 Sep 2010 09:13:20 -0400 Subject: Bug 629050 - Memory leak in e_day_view_recalc_cell_sizes() --- calendar/gui/e-day-view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index d203bd97d7..b0df6748b3 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1881,7 +1881,7 @@ e_day_view_recalc_cell_sizes (EDayView *day_view) if (pango_width < max_width) { day_view->date_format = E_DAY_VIEW_DATE_FULL; - return; + goto exit; } /* Try "Thu 21 Jan". */ @@ -1898,7 +1898,7 @@ e_day_view_recalc_cell_sizes (EDayView *day_view) if (pango_width < max_width) { day_view->date_format = E_DAY_VIEW_DATE_ABBREVIATED; - return; + goto exit; } /* Try "23 Jan". */ @@ -1917,6 +1917,7 @@ e_day_view_recalc_cell_sizes (EDayView *day_view) else day_view->date_format = E_DAY_VIEW_DATE_SHORT; +exit: g_object_unref (layout); } -- cgit v1.2.3