aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view-main-item.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-02 18:16:48 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:21 +0800
commit3b3b6cb0abf2bab0a145df00184fc96677870ec8 (patch)
treee17937633c7ad02a1cafaaa2c81ea6f9401ab276 /calendar/gui/e-day-view-main-item.c
parent200cf8a51dcb360e0452fd985e7331906b70bb67 (diff)
downloadgsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.gz
gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.tar.zst
gsoc2013-evolution-3b3b6cb0abf2bab0a145df00184fc96677870ec8.zip
Add forgotten cairo_destroy() calls
Diffstat (limited to 'calendar/gui/e-day-view-main-item.c')
-rw-r--r--calendar/gui/e-day-view-main-item.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index 366062f36f..08793c9c53 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -251,14 +251,18 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item,
font_options = get_font_options ();
- if (!is_array_index_in_bounds (day_view->events[day], event_num))
+ if (!is_array_index_in_bounds (day_view->events[day], event_num)) {
+ cairo_destroy (cr);
return;
+ }
event = &g_array_index (day_view->events[day], EDayViewEvent,
event_num);
- if (!is_comp_data_valid (event))
+ if (!is_comp_data_valid (event)) {
+ cairo_destroy (cr);
return;
+ }
/* Fill in the event background. Note that for events in the first
column of the day, we might not want to paint over the vertical bar,