mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
fixed mem leak
This commit is contained in:
parent
13c9e638e9
commit
b177237e32
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user