From a4811b1c7a119eaeedf9e2ec9b177c8925642aa1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 13 Sep 2009 12:30:33 +0000 Subject: [PATCH] * we mustn't dump content here... todo: find a better way here. --- webcit/calendar.c | 12 ++++++++++++ webcit/calendar.h | 1 + webcit/summary.c | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index 70fddf490..ad0cd435c 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -864,6 +864,18 @@ int calendar_Cleanup(void **ViewSpecific) return 0; } +int __calendar_Cleanup(void **ViewSpecific) +{ + calview *c; + + c = (calview *) *ViewSpecific; + + free (c); + *ViewSpecific = NULL; + + return 0; +} + void InitModule_CALENDAR diff --git a/webcit/calendar.h b/webcit/calendar.h index 09c54f2fd..d6133aaa5 100644 --- a/webcit/calendar.h +++ b/webcit/calendar.h @@ -48,6 +48,7 @@ int calendar_GetParamsGetServerCall(SharedMessageStatus *Stat, long len); int calendar_Cleanup(void **ViewSpecific); +int __calendar_Cleanup(void **ViewSpecific); void render_calendar_view(calview *c); void display_edit_individual_event(icalcomponent *supplied_vtodo, long msgnum, char *from, diff --git a/webcit/summary.c b/webcit/summary.c index 02c936c93..2586d10fc 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -168,7 +168,7 @@ void calendar_section(void) { wprintf(_("(Nothing)")); wprintf("
\n"); } - calendar_Cleanup(&v); + __calendar_Cleanup(&v); } /* -- 2.39.2