fixing image decoder leak. bug=15380, r=pnunn
git-svn-id: svn://10.0.0.236/trunk@50526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1896cfefef
commit
1a22e3ed7e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user