* just destroy it if we allocated it
authorWilfried Göesgens <willi@citadel.org>
Thu, 7 May 2009 22:40:33 +0000 (22:40 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 7 May 2009 22:40:33 +0000 (22:40 +0000)
webcit/vcard_edit.c

index 7e9355abf647c5e4f9b47bdb0983ee82a1da7840..826a351423ff0e70fb238de2b412d4583a9e74bb 100644 (file)
@@ -1054,7 +1054,8 @@ void do_edit_vcard(long msgnum, char *partnum,
        wprintf("</td></tr></table>\n");
        do_template("endbox", NULL);
        wDumpContent(1);
-       DestroyMessageSummary(Msg);
+       if (Msg != NULL)
+               DestroyMessageSummary(Msg);
 }