From 467214e04f5f7ea054ea78d9da904b5b832e4142 Mon Sep 17 00:00:00 2001 From: "pnunn%netscape.com" Date: Wed, 2 Aug 2000 00:34:30 +0000 Subject: [PATCH] bug#46360: fixing leak of nsWeakReference. Thanks, Patrick. pnunn. --- gfx/src/nsImageNetContextAsync.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gfx/src/nsImageNetContextAsync.cpp b/gfx/src/nsImageNetContextAsync.cpp index 2498ad99228c..6a4dcd927d87 100644 --- a/gfx/src/nsImageNetContextAsync.cpp +++ b/gfx/src/nsImageNetContextAsync.cpp @@ -835,8 +835,7 @@ NS_NewImageNetContext(ilINetContext **aInstancePtrResult, } if(aLoadContext){ - nsCOMPtr loadContext (do_QueryReferent(NS_GetWeakReference(aLoadContext))); - nsCOMPtr group (do_GetInterface(loadContext)); + nsCOMPtr group (do_GetInterface(aLoadContext)); nsresult rv = group->GetDefaultLoadAttributes(&necko_attribs); /* Need code to check freshness of necko cache.