* we mustn't dump content here... todo: find a better way here.
authorWilfried Göesgens <willi@citadel.org>
Sun, 13 Sep 2009 12:30:33 +0000 (12:30 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 13 Sep 2009 12:30:33 +0000 (12:30 +0000)
webcit/calendar.c
webcit/calendar.h
webcit/summary.c

index 70fddf490e9f21fc87b4ccd5fe2a081b32fb52d1..ad0cd435c6da5a655ab3431dc726d7559475bdaa 100644 (file)
@@ -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
index 09c54f2fd4c9bc453b9d0fa37fbacae25019c802..d6133aaa57f42f98b80dbb76290028db17459337 100644 (file)
@@ -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,
index 02c936c9336376f34e0af8dbbbfcf17a62e415c9..2586d10fcb1aea8975d9fac22af05819db32788e 100644 (file)
@@ -168,7 +168,7 @@ void calendar_section(void) {
                wprintf(_("(Nothing)"));
                wprintf("</i><br />\n");
        }
-       calendar_Cleanup(&v);
+       __calendar_Cleanup(&v);
 }
 
 /*