aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/service.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/service.c b/src/service.c
index 421e3dd..5fba01e 100644
--- a/src/service.c
+++ b/src/service.c
@@ -593,12 +593,9 @@ get_all_appointments_this_month (IndicatorDatetimeService * self)
begin,
end);
- if (end != NULL)
- g_date_time_unref (end);
- if (begin != NULL)
- g_date_time_unref (begin);
- if (calendar_date != NULL)
- g_date_time_unref (calendar_date);
+ g_date_time_unref (end);
+ g_date_time_unref (begin);
+ g_date_time_unref (calendar_date);
}
return appointments;