From 16fe98501a949fe11a9bb9d89da4d0d55e72dff3 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Thu, 21 Oct 1999 01:37:03 +0000 Subject: [PATCH] another memory leak fix for mime --- mailnews/mime/src/mimemoz2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mailnews/mime/src/mimemoz2.cpp b/mailnews/mime/src/mimemoz2.cpp index d85bc5e2fa4..41b6f68d8d5 100644 --- a/mailnews/mime/src/mimemoz2.cpp +++ b/mailnews/mime/src/mimemoz2.cpp @@ -272,6 +272,8 @@ NotifyEmittersOfAttachmentList(MimeDisplayOptions *opt, mimeEmitterStartAttachment(opt, tmp->real_name, tmp->real_type, spec); mimeEmitterAddAttachmentField(opt, HEADER_X_MOZILLA_PART_URL, spec); + if (spec) + nsAllocator::Free(spec); /* rhp - for now, just leave these here, but they are really not necessary printf("URL for Part : %s\n", spec);