diff options
Diffstat (limited to 'calendar/pcs/calobj.c')
-rw-r--r-- | calendar/pcs/calobj.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c index 8272fd1560..89bfc94540 100644 --- a/calendar/pcs/calobj.c +++ b/calendar/pcs/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)){ |