aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-09-06 12:45:52 -0500
committerTed Gould <ted@gould.cx>2013-09-06 12:45:52 -0500
commitf96fb5c43dcfa24f155bda145fe53c1d87669a36 (patch)
tree6efe2143c01497a648f591e95117013f385789f7 /src/service.c
parent2a97f6029b467702a362d0b1b7108717366d903e (diff)
downloadayatana-indicator-datetime-f96fb5c43dcfa24f155bda145fe53c1d87669a36.tar.gz
ayatana-indicator-datetime-f96fb5c43dcfa24f155bda145fe53c1d87669a36.tar.bz2
ayatana-indicator-datetime-f96fb5c43dcfa24f155bda145fe53c1d87669a36.zip
Removing check for NULL items
Diffstat (limited to 'src/service.c')
-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;