aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-09-08 21:13:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-09-08 21:13:20 +0800
commite841c0622c5c718be893c9d47ade55fc4151c6c9 (patch)
treeddeccde383e4cf22760070f85862e386f01976c7 /calendar/gui/e-day-view.c
parentd5dae027a8372499663348441e743c0183989400 (diff)
downloadgsoc2013-evolution-e841c0622c5c718be893c9d47ade55fc4151c6c9.tar.gz
gsoc2013-evolution-e841c0622c5c718be893c9d47ade55fc4151c6c9.tar.zst
gsoc2013-evolution-e841c0622c5c718be893c9d47ade55fc4151c6c9.zip
Bug 629050 - Memory leak in e_day_view_recalc_cell_sizes()
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c5
1 files 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);
}