Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur
git-svn-id: svn://10.0.0.236/trunk@50416 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -73,7 +73,6 @@ nsParserFactory::nsParserFactory(const nsCID &aClass)
|
||||
|
||||
nsParserFactory::~nsParserFactory()
|
||||
{
|
||||
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
|
||||
nsHTMLEntities::ReleaseTable();
|
||||
nsHTMLTags::ReleaseTable();
|
||||
}
|
||||
|
||||
@@ -199,7 +199,6 @@ nsTextConverterFactory::nsTextConverterFactory(const nsCID &aClass,
|
||||
|
||||
nsTextConverterFactory::~nsTextConverterFactory()
|
||||
{
|
||||
NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction");
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsTextConverterFactory, NS_GET_IID(nsIFactory));
|
||||
|
||||
Reference in New Issue
Block a user