]> code.citadel.org Git - citadel.git/blobdiff - webcit/summary.c
* fix summary view Loading and freeing
[citadel.git] / webcit / summary.c
index 925d42693035365e1d1398446a79fcd21ddad028..02c936c9336376f34e0af8dbbbfcf17a62e415c9 100644 (file)
@@ -131,9 +131,8 @@ void calendar_section(void) {
        void *vMsg;
        message_summary *Msg;
        wcsession *WCC = WC;
-       calview c;
        StrBuf *Buf;
-       void *v = &c;
+       void *v = NULL;
        SharedMessageStatus Stat;
 
        memset(&Stat, 0, sizeof(SharedMessageStatus));
@@ -151,7 +150,7 @@ void calendar_section(void) {
                num_msgs = load_msg_ptrs("MSGS ALL", &Stat);
        }
        calendar_GetParamsGetServerCall(&Stat, 
-                                       &c,
+                                       &v,
                                        readnew, 
                                        cmd, 
                                        sizeof(cmd));
@@ -169,6 +168,7 @@ void calendar_section(void) {
                wprintf(_("(Nothing)"));
                wprintf("</i><br />\n");
        }
+       calendar_Cleanup(&v);
 }
 
 /*