From 11c373c6f3b2a294a876f00328881242ae7f7576 Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Sun, 20 Sep 1998 05:28:25 +0000 Subject: [PATCH] Added missing NS_RELEASE(...) --- gfx/src/nsImageNetContextSync.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/src/nsImageNetContextSync.cpp b/gfx/src/nsImageNetContextSync.cpp index 01b0ec674445..893b8fc9b9a1 100644 --- a/gfx/src/nsImageNetContextSync.cpp +++ b/gfx/src/nsImageNetContextSync.cpp @@ -156,7 +156,7 @@ ImageNetContextSyncImpl::GetURL(ilIURL* aURL, PRInt32 status = 0; // Get a nsIURL interface - nsIURL* url; + nsIURL* url = nsnull; aURL->QueryInterface(kIURLIID, (void **)&url); // Get a network service interface which we'll use to create a stream @@ -219,8 +219,9 @@ ImageNetContextSyncImpl::GetURL(ilIURL* aURL, aReader->StreamAbort(-1); status = -1; } - + aReader->NetRequestDone(aURL, status); + NS_IF_RELEASE(url); return 0; }