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); }