From: Wilfried Goesgens Date: Thu, 14 Oct 2010 21:12:00 +0000 (+0200) Subject: * add VCard-Context X-Git-Tag: v8.01~659 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=5ff176c92b230cd009781dba2b1cda9c7df53b65 * add VCard-Context * fix memleaks in parser. --- diff --git a/webcit/subst.c b/webcit/subst.c index 4e08db7ac..3a9d26169 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -110,6 +110,7 @@ const char *CtxNames[] = { "Context ICAL", "Context DavNamespace", "Context TAB", + "Context VCARD", "Context UNKNOWN" }; @@ -881,6 +882,8 @@ int GetNextParameter(StrBuf *Buf, } } } + FreeStrBuf(&pToken); + FreeStrBuf(&Match); } else if (strchr(Parm->Start, '&') != NULL) { @@ -917,6 +920,8 @@ int GetNextParameter(StrBuf *Buf, } } } + FreeStrBuf(&Match); + FreeStrBuf(&pToken); } else { diff --git a/webcit/subst.h b/webcit/subst.h index d496e3093..906768316 100644 --- a/webcit/subst.h +++ b/webcit/subst.h @@ -56,8 +56,9 @@ enum { #define CTX_ICAL 18 #define CTX_DAVNS 19 #define CTX_TAB 20 +#define CTX_VCARD 21 -#define CTX_UNKNOWN 21 +#define CTX_UNKNOWN 22 /**