From 4e6218b86bba68aea073482ec62b645e04f941ab Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 23 Jan 2001 06:34:56 +0000 Subject: properly ref the cal component when we use it, prevents double free 2001-01-23 JP Rosevear * 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 --- calendar/conduits/todo/todo-conduit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'calendar/conduits/todo') 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); -- cgit v1.2.3