fixing image decoder leak. bug=15380, r=pnunn

This commit is contained in:
beard%netscape.com 1999-10-13 00:41:43 +00:00
parent bbdcee307c
commit 338240f088

View File

@ -20,7 +20,7 @@
* ilclient.c --- Management of imagelib client data structures,
* including image cache.
*
* $Id: ilclient.cpp,v 3.12 1999/09/25 20:00:17 kipp%netscape.com Exp $
* $Id: ilclient.cpp,v 3.13 1999/10/13 00:41:43 beard%netscape.com Exp $
*/
@ -664,6 +664,11 @@ il_delete_container(il_container *ic)
ic->imgdcb->SetContainer(nsnull);
NS_RELEASE(ic->imgdcb);
}
if (ic->imgdec) {
ic->imgdec->SetContainer(nsnull);
NS_RELEASE(ic->imgdec);
}
FREE_IF_NOT_NULL(ic->comment);
FREE_IF_NOT_NULL(ic->url_address);