[evolution/wip/mcrha/eds-libical-glib] Do not free objects returned by i_cal_time_get_timezone()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/eds-libical-glib] Do not free objects returned by i_cal_time_get_timezone()
- Date: Tue, 9 Apr 2019 09:58:38 +0000 (UTC)
commit 3dbd39ce17168d241278d1d4e8862b659ca5d04c
Author: Milan Crha <mcrha redhat com>
Date: Tue Apr 9 12:00:08 2019 +0200
Do not free objects returned by i_cal_time_get_timezone()
src/calendar/gui/e-comp-editor-page-recurrence.c | 8 +-------
src/calendar/gui/e-comp-editor-property-part.c | 2 --
2 files changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/src/calendar/gui/e-comp-editor-page-recurrence.c
b/src/calendar/gui/e-comp-editor-page-recurrence.c
index 414940f6c5..6104f2b04a 100644
--- a/src/calendar/gui/e-comp-editor-page-recurrence.c
+++ b/src/calendar/gui/e-comp-editor-page-recurrence.c
@@ -202,17 +202,13 @@ ecep_recurrence_update_preview (ECompEditorPageRecurrence *page_recurrence)
zone = i_cal_time_get_timezone (dt);
}
- if (!zone) {
+ if (!zone)
zone = calendar_config_get_icaltimezone ();
- if (zone)
- g_object_ref (zone);
- }
tag_calendar_by_comp (
E_CALENDAR (page_recurrence->priv->preview), comp,
client, zone, TRUE, FALSE, FALSE, page_recurrence->priv->cancellable);
- g_clear_object (&zone);
g_object_unref (comp);
}
@@ -1109,8 +1105,6 @@ ecep_recurrence_fill_ending_date (ECompEditorPageRecurrence *page_recurrence,
rrule->until.minute = 0;
rrule->until.second = 0;
rrule->until.is_date = TRUE;
-
- g_clear_object (&izone);
}
page_recurrence->priv->ending_date_tt = rrule->until;
diff --git a/src/calendar/gui/e-comp-editor-property-part.c b/src/calendar/gui/e-comp-editor-property-part.c
index 60db700bdd..68ceeb8884 100644
--- a/src/calendar/gui/e-comp-editor-property-part.c
+++ b/src/calendar/gui/e-comp-editor-property-part.c
@@ -945,8 +945,6 @@ e_comp_editor_property_part_datetime_set_value (ECompEditorPropertyPartDatetime
g_clear_object (&timezone_entry);
}
- g_clear_object (&zone);
-
e_date_edit_set_date (date_edit, i_cal_time_get_year (value), i_cal_time_get_month (value),
i_cal_time_get_day (value));
if (!i_cal_time_is_date (value))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]