diff options
author | Ted Gould <ted@gould.cx> | 2013-09-06 12:45:52 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-09-06 12:45:52 -0500 |
commit | f96fb5c43dcfa24f155bda145fe53c1d87669a36 (patch) | |
tree | 6efe2143c01497a648f591e95117013f385789f7 /src | |
parent | 2a97f6029b467702a362d0b1b7108717366d903e (diff) | |
download | ayatana-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')
-rw-r--r-- | src/service.c | 9 |
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; |