* start migrating important message to strbuf; have both meanwhile.
[citadel.git] / webcit / context_loop.c
index c844f65a74075df3f876029f66cd12ea26239dc2..a85c87b8ef186c5c67fb530c7323954b6c280da8 100644 (file)
@@ -52,6 +52,8 @@ void DestroySession(wcsession **sessions_to_kill)
        FreeStrBuf(&((*sessions_to_kill)->wc_roomname));
        FreeStrBuf(&((*sessions_to_kill)->httpauth_user));
        FreeStrBuf(&((*sessions_to_kill)->httpauth_pass));
+       FreeStrBuf(&((*sessions_to_kill)->ImportantMsg));
+       FreeStrBuf(&((*sessions_to_kill)->cs_inet_email));
        free((*sessions_to_kill));
        (*sessions_to_kill) = NULL;
 }
@@ -537,6 +539,8 @@ void context_loop(int *sock)
        pthread_mutex_lock(&TheSession->SessionMutex);          /* bind */
        pthread_setspecific(MyConKey, (void *)TheSession);
        
+       if (TheSession->ImportantMsg == NULL)
+               TheSession->ImportantMsg = NewStrBuf();
        TheSession->urlstrings = NewHash(1,NULL);
        TheSession->vars = NewHash(1,NULL);
        TheSession->http_sock = *sock;