From 2942b872021f980a658d898d954e2d04ad26899d Mon Sep 17 00:00:00 2001 From: "caillon%redhat.com" Date: Thu, 13 May 2004 01:43:02 +0000 Subject: [PATCH] 306 // note: once we have an IconRef, 307 // we MUST release it before exiting this method! r=timeless,sr=jst over irc. no bug. --- modules/libpr0n/decoders/icon/mac/nsIconChannel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/libpr0n/decoders/icon/mac/nsIconChannel.cpp b/modules/libpr0n/decoders/icon/mac/nsIconChannel.cpp index 62bffe0b5e7..7fdf5d86a5c 100644 --- a/modules/libpr0n/decoders/icon/mac/nsIconChannel.cpp +++ b/modules/libpr0n/decoders/icon/mac/nsIconChannel.cpp @@ -315,6 +315,7 @@ NS_IMETHODIMP nsIconChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports // sigh; REALLY low-mem, bail if (iconH) ::DisposeHandle(iconH); if (iconMaskH) ::DisposeHandle(iconMaskH); + if (fileExists) ::ReleaseIconRef(icnRef); return(NS_ERROR_OUT_OF_MEMORY); }