|
|
a90057 |
diff --git a/src/calendar/backends/file/e-cal-backend-file.c b/src/calendar/backends/file/e-cal-backend-file.c
|
|
|
a90057 |
index f40bf807c..79ae53632 100644
|
|
|
a90057 |
--- a/src/calendar/backends/file/e-cal-backend-file.c
|
|
|
a90057 |
+++ b/src/calendar/backends/file/e-cal-backend-file.c
|
|
|
a90057 |
@@ -904,6 +904,7 @@ scan_vcalendar (ECalBackendFile *cbfile)
|
|
|
a90057 |
if (e_cal_component_set_icalcomponent (comp, icomp)) {
|
|
|
a90057 |
/* Thus it's not freed while being used in the 'comp' */
|
|
|
a90057 |
g_object_ref (icomp);
|
|
|
a90057 |
+ i_cal_object_set_owner (I_CAL_OBJECT (icomp), G_OBJECT (priv->vcalendar));
|
|
|
a90057 |
|
|
|
a90057 |
check_dup_uid (cbfile, comp);
|
|
|
a90057 |
|
|
|
a90057 |
diff --git a/src/calendar/backends/http/e-cal-backend-http.c b/src/calendar/backends/http/e-cal-backend-http.c
|
|
|
a90057 |
index a7e930ca0..bfe9b4554 100644
|
|
|
a90057 |
--- a/src/calendar/backends/http/e-cal-backend-http.c
|
|
|
a90057 |
+++ b/src/calendar/backends/http/e-cal-backend-http.c
|
|
|
a90057 |
@@ -477,13 +477,18 @@ ecb_http_get_changes_sync (ECalMetaBackend *meta_backend,
|
|
|
a90057 |
} else {
|
|
|
a90057 |
iter = i_cal_component_begin_component (maincomp, I_CAL_VCALENDAR_COMPONENT);
|
|
|
a90057 |
subcomp = i_cal_comp_iter_deref (iter);
|
|
|
a90057 |
+ if (subcomp)
|
|
|
a90057 |
+ i_cal_object_set_owner (I_CAL_OBJECT (subcomp), G_OBJECT (maincomp));
|
|
|
a90057 |
}
|
|
|
a90057 |
|
|
|
a90057 |
while (subcomp && success) {
|
|
|
a90057 |
ICalComponent *next_subcomp = NULL;
|
|
|
a90057 |
|
|
|
a90057 |
- if (iter)
|
|
|
a90057 |
+ if (iter) {
|
|
|
a90057 |
next_subcomp = i_cal_comp_iter_next (iter);
|
|
|
a90057 |
+ if (next_subcomp)
|
|
|
a90057 |
+ i_cal_object_set_owner (I_CAL_OBJECT (next_subcomp), G_OBJECT (maincomp));
|
|
|
a90057 |
+ }
|
|
|
a90057 |
|
|
|
a90057 |
if (i_cal_component_isa (subcomp) == I_CAL_VCALENDAR_COMPONENT) {
|
|
|
a90057 |
success = e_cal_meta_backend_gather_timezones_sync (meta_backend, subcomp, TRUE, cancellable, error);
|
|
|
a90057 |
diff --git a/src/calendar/libecal/e-cal-component.c b/src/calendar/libecal/e-cal-component.c
|
|
|
a90057 |
index a3dddcc8f..c7629813a 100644
|
|
|
a90057 |
--- a/src/calendar/libecal/e-cal-component.c
|
|
|
a90057 |
+++ b/src/calendar/libecal/e-cal-component.c
|
|
|
a90057 |
@@ -95,6 +95,8 @@ foreach_subcomponent (ICalComponent *icalcomp,
|
|
|
a90057 |
while (subcomp) {
|
|
|
a90057 |
ICalComponent *next_subcomp;
|
|
|
a90057 |
|
|
|
a90057 |
+ i_cal_object_set_owner (I_CAL_OBJECT (subcomp), G_OBJECT (icalcomp));
|
|
|
a90057 |
+
|
|
|
a90057 |
next_subcomp = i_cal_comp_iter_next (iter);
|
|
|
a90057 |
|
|
|
a90057 |
if (!func (icalcomp, subcomp, user_data)) {
|