fixed mem leak

This commit is contained in:
valeski%netscape.com 1999-09-01 23:20:22 +00:00
parent 13c9e638e9
commit b177237e32

View File

@ -29,6 +29,7 @@ TestConverter::Convert(nsIInputStream *aFromStream,
nsString2 to(aToType);
char *toMIME = to.ToNewCString();
char toChar = *toMIME;
nsAllocator::Free(toMIME);
for (PRUint32 i = 0; i < read; i++)
buf[i] = toChar;