mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 575633 streamParse leaks ToNewCString(globalStream)
r=biesi --HG-- extra : rebase_source : 60422d4d1120d16044a8d292f7fafc7cb8cdcbfb
This commit is contained in:
parent
f0252e7cbf
commit
52ead6ee67
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user