aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/todo
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-01-23 14:34:56 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-23 14:34:56 +0800
commit4e6218b86bba68aea073482ec62b645e04f941ab (patch)
tree5806172cd5520e9cf5380790f492573bad80b5a2 /calendar/conduits/todo
parent78fb2fa0edcad3facb7e1f5cab12303b1864e47e (diff)
downloadgsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.tar
gsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.tar.gz
gsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.tar.bz2
gsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.tar.lz
gsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.tar.xz
gsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.tar.zst
gsoc2013-evolution-4e6218b86bba68aea073482ec62b645e04f941ab.zip
properly ref the cal component when we use it, prevents double free
2001-01-23 JP Rosevear <jpr@ximian.com> * conduits/todo/todo-conduit.c (local_record_from_comp): properly ref the cal component when we use it, prevents double free * conduits/calendar/calendar-conduit.c (local_record_from_comp): ditto svn path=/trunk/; revision=7741
Diffstat (limited to 'calendar/conduits/todo')
-rw-r--r--calendar/conduits/todo/todo-conduit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 17e51d106a..482737c4a5 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -328,6 +328,7 @@ local_record_from_comp (EToDoLocalRecord *local, CalComponent *comp, EToDoCondui
g_return_if_fail (comp != NULL);
local->comp = comp;
+ gtk_object_ref (GTK_OBJECT (comp));
cal_component_get_uid (local->comp, &uid);
local->local.ID = e_pilot_map_lookup_pid (ctxt->map, uid);