306 // note: once we have an IconRef,

307   // we MUST release it before exiting this method!

r=timeless,sr=jst over irc.  no bug.
This commit is contained in:
caillon%redhat.com 2004-05-13 01:43:02 +00:00
Родитель 68f1885217
Коммит 2942b87202
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -315,6 +315,7 @@ NS_IMETHODIMP nsIconChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports
// sigh; REALLY low-mem, bail // sigh; REALLY low-mem, bail
if (iconH) ::DisposeHandle(iconH); if (iconH) ::DisposeHandle(iconH);
if (iconMaskH) ::DisposeHandle(iconMaskH); if (iconMaskH) ::DisposeHandle(iconMaskH);
if (fileExists) ::ReleaseIconRef(icnRef);
return(NS_ERROR_OUT_OF_MEMORY); return(NS_ERROR_OUT_OF_MEMORY);
} }