[evolution] Bug 629050 - Memory leak in e_day_view_recalc_cell_sizes()



commit e841c0622c5c718be893c9d47ade55fc4151c6c9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Sep 8 09:13:20 2010 -0400

    Bug 629050 - Memory leak in e_day_view_recalc_cell_sizes()

 calendar/gui/e-day-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index d203bd9..b0df674 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]