Bug 575633 streamParse leaks ToNewCString(globalStream)

r=biesi

--HG--
extra : rebase_source : 60422d4d1120d16044a8d292f7fafc7cb8cdcbfb
This commit is contained in:
timeless@mozdev.org 2010-07-01 02:39:35 +03:00
parent f0252e7cbf
commit 52ead6ee67

View File

@ -89,14 +89,14 @@ static NS_METHOD streamParse (nsIInputStream* in,
char parseBuf[2048], loc[2048], lineBuf[2048];
char *loc_t, *loc_t2;
int i = 0;
char *tmp;
const char *tmp;
if(!globalStream.IsEmpty()) {
globalStream.Append(fromRawSegment);
tmp = ToNewCString(globalStream);
tmp = globalStream.get();
//printf("\n>>NOW:\n^^^^^\n%s\n^^^^^^^^^^^^^^", tmp);
} else {
tmp = (char *)fromRawSegment;
tmp = fromRawSegment;
}
while(i < (int)count) {