From: Wilfried Göesgens Date: Thu, 7 May 2009 22:40:33 +0000 (+0000) Subject: * just destroy it if we allocated it X-Git-Tag: v7.86~1185 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=9e2dd6c9c9ba337755ba58f0bbbce271ef14545b * just destroy it if we allocated it --- diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index 7e9355abf..826a35142 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -1054,7 +1054,8 @@ void do_edit_vcard(long msgnum, char *partnum, wprintf("\n"); do_template("endbox", NULL); wDumpContent(1); - DestroyMessageSummary(Msg); + if (Msg != NULL) + DestroyMessageSummary(Msg); }