From 541c3a7a73e084b5ebd82aae7c3fc1f3ba4f0b72 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Fri, 17 Apr 1998 04:49:37 +0000 Subject: New event generation api in place -miguel svn path=/trunk/; revision=146 --- calendar/cal-util/calobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c index 8272fd1560..89bfc94540 100644 --- a/calendar/cal-util/calobj.c +++ b/calendar/cal-util/calobj.c @@ -408,8 +408,10 @@ ical_object_create_from_vobject (VObject *o, const char *object_name) ical->type = ICAL_EVENT; else if (strcmp (object_name, VCTodoProp) == 0) ical->type = ICAL_TODO; - else + else { + g_free (ical); return 0; + } /* uid */ if (has (o, VCUniqueStringProp)){ -- cgit v1.2.3