Fixed memory leak in ToString()

git-svn-id: svn://10.0.0.236/trunk@16917 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-12-29 01:03:26 +00:00
parent 4bbbe1f26f
commit cdbdb080a4
2 changed files with 15 additions and 15 deletions

View File

@@ -953,7 +953,7 @@ NS_NET nsresult NS_MakeAbsoluteURL(nsIURL* aURL,
err = url->ToString(&str);
if (err) goto done;
string = new nsString(str);
delete str;
delete []str;
if (string == NULL)
err = NS_ERROR_OUT_OF_MEMORY;
else