Fix leak.

git-svn-id: svn://10.0.0.236/trunk@72294 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 2000-06-15 06:41:17 +00:00
parent ad3905ebd0
commit c2a827c3b4

View File

@ -2727,6 +2727,8 @@ NS_IMETHODIMP nsDocShell::DoURILoad(nsIURI* aURI, nsIURI* aReferrerURI,
aURI->GetScheme(&scheme);
if (PL_strcasecmp(scheme, jsSchemeName) == 0)
channel->SetOwner(aOwner);
if (scheme)
nsCRT::free(scheme);
}
else
{ // Also set owner for data: URLs