diff options
Diffstat (limited to 'calendar/pcs')
-rw-r--r-- | calendar/pcs/calobj.c | 2 | ||||
-rw-r--r-- | calendar/pcs/calobj.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c index 87dd8db78d..fcdfb7e59d 100644 --- a/calendar/pcs/calobj.c +++ b/calendar/pcs/calobj.c @@ -13,7 +13,7 @@ ical_object_new (void) { iCalObject *ico; - ico = g_new0 (iCalObject); + ico = g_new0 (iCalObject, 1); ico->seq = -1; ico->dtstamp = time (NULL); diff --git a/calendar/pcs/calobj.h b/calendar/pcs/calobj.h index fda3a1e4b5..d5f6db0ae0 100644 --- a/calendar/pcs/calobj.h +++ b/calendar/pcs/calobj.h @@ -7,6 +7,8 @@ #ifndef CALOBJ_H #define CALOBJ_H +#include <libgnome/libgnome.h> + BEGIN_GNOME_DECLS typedef struct { @@ -42,7 +44,7 @@ typedef struct { typedef enum { ICAL_OPAQUE, ICAL_TRANSPARENT -}; +} iCalTransp; typedef char NotYet; @@ -93,8 +95,8 @@ typedef struct { iCalObject *ical_new (char *comment, char *organizer, char *summary); iCalObject *ical_object_new (void); +void ical_object_destroy (iCalObject *ico); END_GNOME_DECLS #endif - |