From 39ff564e5264ed20e7d9b52a7ecc0394f128cb28 Mon Sep 17 00:00:00 2001 From: Dave West Date: Thu, 8 Nov 2007 00:15:44 +0000 Subject: [PATCH] And nox ICAL putics works properly. --- citadel/modules/calendar/serv_calendar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/citadel/modules/calendar/serv_calendar.c b/citadel/modules/calendar/serv_calendar.c index a8ae3b7c9..d9505b332 100644 --- a/citadel/modules/calendar/serv_calendar.c +++ b/citadel/modules/calendar/serv_calendar.c @@ -114,6 +114,7 @@ void ical_write_to_cal(struct ctdluser *u, icalcomponent *cal) { char *ser = NULL; icalcomponent *encaps = NULL; struct CtdlMessage *msg = NULL; + icalcomponent *tmp=NULL; if (cal == NULL) return; @@ -121,9 +122,10 @@ void ical_write_to_cal(struct ctdluser *u, icalcomponent *cal) { * a full VCALENDAR component, and save that instead. */ if (icalcomponent_isa(cal) != ICAL_VCALENDAR_COMPONENT) { - encaps = ical_encapsulate_subcomponent(icalcomponent_new_clone(cal)); + tmp = icalcomponent_new_clone(cal); + encaps = ical_encapsulate_subcomponent(tmp); ical_write_to_cal(u, encaps); - icalcomponent_free(encaps); + icalcomponent_free(tmp); return; } @@ -173,7 +175,7 @@ void ical_write_to_cal(struct ctdluser *u, icalcomponent *cal) { } /* In either case, now we can free the serialized calendar object */ - free(ser); +// free(ser); } -- 2.39.2