aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-conduit.c8
-rw-r--r--calendar/gui/calendar-pilot-sync.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/calendar-conduit.c b/calendar/gui/calendar-conduit.c
index 8aa0e23a3f..2cddd84186 100644
--- a/calendar/gui/calendar-conduit.c
+++ b/calendar/gui/calendar-conduit.c
@@ -501,12 +501,12 @@ update_record (GnomePilotConduitStandardAbs *conduit,
WARN (_("Error while communicating with calendar server"));
show_exception(&(ctxt->ev));
CORBA_exception_free(&(ctxt->ev));
- ical_object_destroy (obj);
+ ical_object_unref (obj);
free_Appointment(&a);
return -1;
} else {
LOG ("Found");
- ical_object_destroy (obj);
+ ical_object_unref (obj);
obj = ical_object_new_from_string (vcal_string);
ical_from_remote_record(conduit,remote,obj);
CORBA_free(vcal_string);
@@ -519,7 +519,7 @@ update_record (GnomePilotConduitStandardAbs *conduit,
/*
* Shutdown
*/
- ical_object_destroy (obj);
+ ical_object_unref (obj);
free_Appointment(&a);
return 0;
@@ -649,7 +649,7 @@ free_match (GnomePilotConduitStandardAbs *conduit,
g_return_val_if_fail(local!=NULL,-1);
g_return_val_if_fail(*local!=NULL,-1);
- ical_object_destroy (GCAL_LOCALRECORD(*local)->ical);
+ ical_object_unref (GCAL_LOCALRECORD(*local)->ical);
g_free(*local);
*local = NULL;
diff --git a/calendar/gui/calendar-pilot-sync.c b/calendar/gui/calendar-pilot-sync.c
index 7378f796fd..98740a51f4 100644
--- a/calendar/gui/calendar-pilot-sync.c
+++ b/calendar/gui/calendar-pilot-sync.c
@@ -172,7 +172,7 @@ update_record (GNOME_Calendar_Repository repo, int id, struct Appointment *a, in
if (obj->pilot_status == ICAL_PILOT_SYNC_MOD){
printf (_("\tObject has been modified on desktop and on the pilot, desktop takes precedence\n"));
- ical_object_destroy (obj);
+ ical_object_unref (obj);
return;
}
@@ -313,7 +313,7 @@ update_record (GNOME_Calendar_Repository repo, int id, struct Appointment *a, in
/*
* Shutdown
*/
- ical_object_destroy (obj);
+ ical_object_unref (obj);
}
/*