bug#46360: fixing leak of nsWeakReference. Thanks, Patrick. pnunn.

This commit is contained in:
pnunn%netscape.com 2000-08-02 00:34:30 +00:00
parent 9c39057d7a
commit 467214e04f

View File

@ -835,8 +835,7 @@ NS_NewImageNetContext(ilINetContext **aInstancePtrResult,
}
if(aLoadContext){
nsCOMPtr<nsISupports> loadContext (do_QueryReferent(NS_GetWeakReference(aLoadContext)));
nsCOMPtr<nsILoadGroup> group (do_GetInterface(loadContext));
nsCOMPtr<nsILoadGroup> group (do_GetInterface(aLoadContext));
nsresult rv = group->GetDefaultLoadAttributes(&necko_attribs);
/*
Need code to check freshness of necko cache.