mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
fixing a memory leak, thanks David
This commit is contained in:
parent
165daef17b
commit
c2931d16b3
@ -797,7 +797,7 @@ nsStdURL::SetRelativePath(const char* i_Relative)
|
||||
CRTFREEIF(mRef);
|
||||
return SetQuery((char*)i_Relative);
|
||||
} else {
|
||||
DupString(&query,"");
|
||||
DupString(&query,nsnull);
|
||||
ExtractString((char*)i_Relative, &query, 0,(PL_strlen(i_Relative)-(ref-i_Relative)));
|
||||
|
||||
rv = SetQuery(query);
|
||||
@ -868,8 +868,8 @@ nsStdURL::ParsePath(void)
|
||||
|
||||
char* dirfile;
|
||||
char* options;
|
||||
DupString(&dirfile, "");
|
||||
DupString(&options, "");
|
||||
DupString(&dirfile, nsnull);
|
||||
DupString(&options, nsnull);
|
||||
|
||||
int len = PL_strlen(mPath);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user