aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/todo
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-29 10:35:07 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-29 10:35:07 +0800
commit74b1176c95936911aabd83d5671dea7cd99da763 (patch)
tree4b4ddf16009355298c03912821b447ba27236355 /calendar/conduits/todo
parent891310bddb462fec2a8bd196fc038af5bf857fa5 (diff)
downloadgsoc2013-evolution-74b1176c95936911aabd83d5671dea7cd99da763.tar.gz
gsoc2013-evolution-74b1176c95936911aabd83d5671dea7cd99da763.tar.zst
gsoc2013-evolution-74b1176c95936911aabd83d5671dea7cd99da763.zip
unref the comp when finished
2001-10-28 JP Rosevear <jpr@ximian.com> * conduits/calendar/calendar-conduit.c (add_record): unref the comp when finished * conduits/todo/todo-conduit.c (add_record): ditto svn path=/trunk/; revision=14316
Diffstat (limited to 'calendar/conduits/todo')
-rw-r--r--calendar/conduits/todo/e-todo-conduit-control-applet.desktop.in7
-rw-r--r--calendar/conduits/todo/todo-conduit.c8
2 files changed, 5 insertions, 10 deletions
diff --git a/calendar/conduits/todo/e-todo-conduit-control-applet.desktop.in b/calendar/conduits/todo/e-todo-conduit-control-applet.desktop.in
deleted file mode 100644
index ec5856fcad..0000000000
--- a/calendar/conduits/todo/e-todo-conduit-control-applet.desktop.in
+++ /dev/null
@@ -1,7 +0,0 @@
-[Desktop Entry]
-_Name=Evolution ToDo Conduit
-_Comment=Configure the Evolution ToDo conduit
-Exec=e-todo-conduit-control-applet --cap-id=1
-TryExec=e-todo-conduit-control-applet
-Terminal=0
-Type=Application
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index fd0182a004..99da43b13f 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -576,7 +576,7 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
cal_component_set_percent (comp, &percent);
cal_component_set_status (comp, ICAL_STATUS_COMPLETED);
} else {
- int *percent;
+ int *percent = NULL;
icalproperty_status status;
cal_component_set_completed (comp, NULL);
@@ -586,7 +586,8 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
int p = 0;
cal_component_set_percent (comp, &p);
}
- cal_component_free_percent (percent);
+ if (percent != NULL)
+ cal_component_free_percent (percent);
cal_component_get_status (comp, &status);
if (status == ICAL_STATUS_COMPLETED)
@@ -973,9 +974,10 @@ add_record (GnomePilotConduitSyncAbs *conduit,
update_comp (conduit, comp, ctxt);
cal_component_get_uid (comp, &uid);
-
e_pilot_map_insert (ctxt->map, remote->ID, uid, FALSE);
+ gtk_object_unref (GTK_OBJECT (comp));
+
return retval;
}