diff --git a/mozilla/content/base/src/nsDocumentEncoder.cpp b/mozilla/content/base/src/nsDocumentEncoder.cpp index b840f1716bf..cc8d7783178 100644 --- a/mozilla/content/base/src/nsDocumentEncoder.cpp +++ b/mozilla/content/base/src/nsDocumentEncoder.cpp @@ -310,7 +310,6 @@ nsDocumentEncoderFactory::nsDocumentEncoderFactory() nsDocumentEncoderFactory::~nsDocumentEncoderFactory() { MOZ_COUNT_DTOR(nsDocumentEncoderFactory); - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ADDREF(nsDocumentEncoderFactory) diff --git a/mozilla/dom/src/build/nsDOMFactory.cpp b/mozilla/dom/src/build/nsDOMFactory.cpp index 5ff79cea4d1..813f416120f 100644 --- a/mozilla/dom/src/build/nsDOMFactory.cpp +++ b/mozilla/dom/src/build/nsDOMFactory.cpp @@ -625,7 +625,6 @@ nsDOMFactory::nsDOMFactory(const nsCID &aClass) nsDOMFactory::~nsDOMFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsDOMFactory::QueryInterface(const nsIID &aIID, diff --git a/mozilla/editor/base/nsEditorShellFactory.cpp b/mozilla/editor/base/nsEditorShellFactory.cpp index 2e44ad5bdc4..9cbb74c2960 100644 --- a/mozilla/editor/base/nsEditorShellFactory.cpp +++ b/mozilla/editor/base/nsEditorShellFactory.cpp @@ -47,7 +47,6 @@ nsEditorShellFactoryImpl::nsEditorShellFactoryImpl(const nsCID &aClass, nsEditorShellFactoryImpl::~nsEditorShellFactoryImpl(void) { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } diff --git a/mozilla/editor/libeditor/txtsvc/nsTextServicesFactory.cpp b/mozilla/editor/libeditor/txtsvc/nsTextServicesFactory.cpp index e9586bec11f..8704c77c238 100644 --- a/mozilla/editor/libeditor/txtsvc/nsTextServicesFactory.cpp +++ b/mozilla/editor/libeditor/txtsvc/nsTextServicesFactory.cpp @@ -56,7 +56,6 @@ nsTextServicesDocumentFactory::nsTextServicesDocumentFactory() nsTextServicesDocumentFactory::~nsTextServicesDocumentFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ADDREF(nsTextServicesDocumentFactory) diff --git a/mozilla/editor/txmgr/src/nsTransactionManagerFactory.cpp b/mozilla/editor/txmgr/src/nsTransactionManagerFactory.cpp index 795d44412cd..93fcbc7f9c7 100644 --- a/mozilla/editor/txmgr/src/nsTransactionManagerFactory.cpp +++ b/mozilla/editor/txmgr/src/nsTransactionManagerFactory.cpp @@ -61,7 +61,6 @@ nsTransactionManagerFactory::nsTransactionManagerFactory() nsTransactionManagerFactory::~nsTransactionManagerFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ADDREF(nsTransactionManagerFactory) diff --git a/mozilla/editor/txtsvc/src/nsTextServicesFactory.cpp b/mozilla/editor/txtsvc/src/nsTextServicesFactory.cpp index e9586bec11f..8704c77c238 100644 --- a/mozilla/editor/txtsvc/src/nsTextServicesFactory.cpp +++ b/mozilla/editor/txtsvc/src/nsTextServicesFactory.cpp @@ -56,7 +56,6 @@ nsTextServicesDocumentFactory::nsTextServicesDocumentFactory() nsTextServicesDocumentFactory::~nsTextServicesDocumentFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ADDREF(nsTextServicesDocumentFactory) diff --git a/mozilla/extensions/irc/libbs/bsXPCConnectionFactory.cpp b/mozilla/extensions/irc/libbs/bsXPCConnectionFactory.cpp index 88ccd1d8d2f..e1ad67af663 100644 --- a/mozilla/extensions/irc/libbs/bsXPCConnectionFactory.cpp +++ b/mozilla/extensions/irc/libbs/bsXPCConnectionFactory.cpp @@ -74,7 +74,6 @@ bsConnectionFactory::bsConnectionFactory(const nsCID &aClass, bsConnectionFactory::~bsConnectionFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMETHODIMP diff --git a/mozilla/extensions/wallet/cookieviewer/nsCookieViewerFactory.cpp b/mozilla/extensions/wallet/cookieviewer/nsCookieViewerFactory.cpp index 46695d6a705..744a2893afe 100644 --- a/mozilla/extensions/wallet/cookieviewer/nsCookieViewerFactory.cpp +++ b/mozilla/extensions/wallet/cookieviewer/nsCookieViewerFactory.cpp @@ -71,7 +71,6 @@ CookieViewerFactoryImpl::CookieViewerFactoryImpl(const nsCID &aClass, CookieViewerFactoryImpl::~CookieViewerFactoryImpl() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMETHODIMP diff --git a/mozilla/extensions/wallet/editor/nsWalletEditorFactory.cpp b/mozilla/extensions/wallet/editor/nsWalletEditorFactory.cpp index 7a10fc5ee08..d9ec08b2119 100644 --- a/mozilla/extensions/wallet/editor/nsWalletEditorFactory.cpp +++ b/mozilla/extensions/wallet/editor/nsWalletEditorFactory.cpp @@ -71,7 +71,6 @@ WalletEditorFactoryImpl::WalletEditorFactoryImpl(const nsCID &aClass, WalletEditorFactoryImpl::~WalletEditorFactoryImpl() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMETHODIMP diff --git a/mozilla/extensions/wallet/signonviewer/nsSignonViewerFactory.cpp b/mozilla/extensions/wallet/signonviewer/nsSignonViewerFactory.cpp index 464014205ae..9b9138d6f9e 100644 --- a/mozilla/extensions/wallet/signonviewer/nsSignonViewerFactory.cpp +++ b/mozilla/extensions/wallet/signonviewer/nsSignonViewerFactory.cpp @@ -71,7 +71,6 @@ SignonViewerFactoryImpl::SignonViewerFactoryImpl(const nsCID &aClass, SignonViewerFactoryImpl::~SignonViewerFactoryImpl() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMETHODIMP diff --git a/mozilla/extensions/wallet/walletpreview/nsWalletPreviewFactory.cpp b/mozilla/extensions/wallet/walletpreview/nsWalletPreviewFactory.cpp index 472d5c8836f..a12699630b9 100644 --- a/mozilla/extensions/wallet/walletpreview/nsWalletPreviewFactory.cpp +++ b/mozilla/extensions/wallet/walletpreview/nsWalletPreviewFactory.cpp @@ -71,7 +71,6 @@ WalletPreviewFactoryImpl::WalletPreviewFactoryImpl(const nsCID &aClass, WalletPreviewFactoryImpl::~WalletPreviewFactoryImpl() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMETHODIMP diff --git a/mozilla/gfx/src/beos/nsGfxFactoryBeOS.cpp b/mozilla/gfx/src/beos/nsGfxFactoryBeOS.cpp index f84cc05ba42..887d6e0d686 100644 --- a/mozilla/gfx/src/beos/nsGfxFactoryBeOS.cpp +++ b/mozilla/gfx/src/beos/nsGfxFactoryBeOS.cpp @@ -73,7 +73,6 @@ nsGfxFactoryBeOS::nsGfxFactoryBeOS(const nsCID &aClass) nsGfxFactoryBeOS::~nsGfxFactoryBeOS() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryBeOS::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/gtk/nsGfxFactoryGTK.cpp b/mozilla/gfx/src/gtk/nsGfxFactoryGTK.cpp index 13fd4fffd6c..bad0206dc63 100644 --- a/mozilla/gfx/src/gtk/nsGfxFactoryGTK.cpp +++ b/mozilla/gfx/src/gtk/nsGfxFactoryGTK.cpp @@ -78,7 +78,6 @@ nsGfxFactoryGTK::nsGfxFactoryGTK(const nsCID &aClass) nsGfxFactoryGTK::~nsGfxFactoryGTK() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryGTK::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/mac/nsGfxFactoryMac.cpp b/mozilla/gfx/src/mac/nsGfxFactoryMac.cpp index 1bd8c7603c3..37b2031e994 100644 --- a/mozilla/gfx/src/mac/nsGfxFactoryMac.cpp +++ b/mozilla/gfx/src/mac/nsGfxFactoryMac.cpp @@ -71,7 +71,6 @@ nsGfxFactoryMac::nsGfxFactoryMac(const nsCID &aClass) nsGfxFactoryMac::~nsGfxFactoryMac() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryMac::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp b/mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp index 048f78edaff..f52e604f06b 100644 --- a/mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp +++ b/mozilla/gfx/src/motif/nsGfxFactoryMotif.cpp @@ -68,7 +68,6 @@ nsGfxFactoryMotif::nsGfxFactoryMotif(const nsCID &aClass) nsGfxFactoryMotif::~nsGfxFactoryMotif() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryMotif::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/os2/nsGfxFactoryOS2.cpp b/mozilla/gfx/src/os2/nsGfxFactoryOS2.cpp index b2e5be6ac47..07805270798 100644 --- a/mozilla/gfx/src/os2/nsGfxFactoryOS2.cpp +++ b/mozilla/gfx/src/os2/nsGfxFactoryOS2.cpp @@ -77,7 +77,6 @@ nsGfxFactoryOS2::nsGfxFactoryOS2( const nsCID &aClass) nsGfxFactoryOS2::~nsGfxFactoryOS2() { - NS_ASSERTION( mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ISUPPORTS(nsGfxFactoryOS2,nsIFactory::GetIID()) diff --git a/mozilla/gfx/src/photon/nsGfxFactoryPh.cpp b/mozilla/gfx/src/photon/nsGfxFactoryPh.cpp index 7ce2f77ae7b..672ccfa85ee 100644 --- a/mozilla/gfx/src/photon/nsGfxFactoryPh.cpp +++ b/mozilla/gfx/src/photon/nsGfxFactoryPh.cpp @@ -81,8 +81,6 @@ nsGfxFactoryPh::nsGfxFactoryPh(const nsCID &aClass) nsGfxFactoryPh::~nsGfxFactoryPh() { PR_LOG(PhGfxLog, PR_LOG_DEBUG,("nsGfxFactoryPh::~nsGfxFactoryPh Destructor\n")); - - NS_ASSERTION(mRefCnt == 0, "nsGfxFactoryGTK::~nsGfxFactoryGTK non-zero refcnt at destruction"); } nsresult nsGfxFactoryPh::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/ps/nsGfxFactoryPS.cpp b/mozilla/gfx/src/ps/nsGfxFactoryPS.cpp index 5b80f9c189e..7e5171c83ec 100644 --- a/mozilla/gfx/src/ps/nsGfxFactoryPS.cpp +++ b/mozilla/gfx/src/ps/nsGfxFactoryPS.cpp @@ -55,7 +55,6 @@ nsGfxFactoryPS::nsGfxFactoryPS(const nsCID &aClass) : nsGfxFactoryPS::~nsGfxFactoryPS() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ISUPPORTS(nsGfxFactoryPS, nsIFactory::GetIID()) diff --git a/mozilla/gfx/src/qt/nsGfxFactoryQT.cpp b/mozilla/gfx/src/qt/nsGfxFactoryQT.cpp index 6dfc64ed803..0c342c86257 100644 --- a/mozilla/gfx/src/qt/nsGfxFactoryQT.cpp +++ b/mozilla/gfx/src/qt/nsGfxFactoryQT.cpp @@ -76,7 +76,6 @@ nsGfxFactoryQT::nsGfxFactoryQT(const nsCID &aClass) nsGfxFactoryQT::~nsGfxFactoryQT() { PR_LOG(QtGfxLM, PR_LOG_DEBUG, ("nsGfxFactoryQT::~nsGfxFactoryQT()\n")); - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryQT::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/windows/nsGfxFactoryWin.cpp b/mozilla/gfx/src/windows/nsGfxFactoryWin.cpp index cc227f25d38..3f9b9e5dd9c 100644 --- a/mozilla/gfx/src/windows/nsGfxFactoryWin.cpp +++ b/mozilla/gfx/src/windows/nsGfxFactoryWin.cpp @@ -90,7 +90,6 @@ nsGfxFactoryWin::nsGfxFactoryWin(const nsCID &aClass) nsGfxFactoryWin::~nsGfxFactoryWin() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryWin::QueryInterface(const nsIID &aIID, diff --git a/mozilla/gfx/src/xlib/nsGfxFactoryXlib.cpp b/mozilla/gfx/src/xlib/nsGfxFactoryXlib.cpp index 67b4524ac72..988dba028da 100644 --- a/mozilla/gfx/src/xlib/nsGfxFactoryXlib.cpp +++ b/mozilla/gfx/src/xlib/nsGfxFactoryXlib.cpp @@ -73,7 +73,6 @@ nsGfxFactoryXlib::nsGfxFactoryXlib(const nsCID &aClass) nsGfxFactoryXlib::~nsGfxFactoryXlib() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsGfxFactoryXlib::QueryInterface(const nsIID &aIID, diff --git a/mozilla/htmlparser/src/nsParserFactory.cpp b/mozilla/htmlparser/src/nsParserFactory.cpp index 12f59684548..bbf3c140034 100644 --- a/mozilla/htmlparser/src/nsParserFactory.cpp +++ b/mozilla/htmlparser/src/nsParserFactory.cpp @@ -73,7 +73,6 @@ nsParserFactory::nsParserFactory(const nsCID &aClass) nsParserFactory::~nsParserFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); nsHTMLEntities::ReleaseTable(); nsHTMLTags::ReleaseTable(); } diff --git a/mozilla/htmlparser/src/nsTextConverter.cpp b/mozilla/htmlparser/src/nsTextConverter.cpp index dd795bbecd0..e9a6d1d47c2 100644 --- a/mozilla/htmlparser/src/nsTextConverter.cpp +++ b/mozilla/htmlparser/src/nsTextConverter.cpp @@ -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)); diff --git a/mozilla/intl/locale/src/mac/nsLocaleFactoryMac.cpp b/mozilla/intl/locale/src/mac/nsLocaleFactoryMac.cpp index cea5539db6b..cde7436abb5 100644 --- a/mozilla/intl/locale/src/mac/nsLocaleFactoryMac.cpp +++ b/mozilla/intl/locale/src/mac/nsLocaleFactoryMac.cpp @@ -42,7 +42,6 @@ nsLocaleMacFactory::nsLocaleMacFactory(const nsCID &aClass) nsLocaleMacFactory::~nsLocaleMacFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsLocaleMacFactory::QueryInterface(const nsIID &aIID, diff --git a/mozilla/intl/locale/src/unix/nsLocaleFactoryUnix.cpp b/mozilla/intl/locale/src/unix/nsLocaleFactoryUnix.cpp index 2333dd96106..9dd073f6360 100644 --- a/mozilla/intl/locale/src/unix/nsLocaleFactoryUnix.cpp +++ b/mozilla/intl/locale/src/unix/nsLocaleFactoryUnix.cpp @@ -43,7 +43,6 @@ nsLocaleUnixFactory::nsLocaleUnixFactory(const nsCID &aClass) nsLocaleUnixFactory::~nsLocaleUnixFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsLocaleUnixFactory::QueryInterface(const nsIID &aIID, diff --git a/mozilla/intl/locale/src/windows/nsLocaleFactoryWin.cpp b/mozilla/intl/locale/src/windows/nsLocaleFactoryWin.cpp index 410a7e4915f..c5aac6c036c 100644 --- a/mozilla/intl/locale/src/windows/nsLocaleFactoryWin.cpp +++ b/mozilla/intl/locale/src/windows/nsLocaleFactoryWin.cpp @@ -42,7 +42,6 @@ nsLocaleWinFactory::nsLocaleWinFactory(const nsCID &aClass) nsLocaleWinFactory::~nsLocaleWinFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsLocaleWinFactory::QueryInterface(const nsIID &aIID, diff --git a/mozilla/layout/base/src/nsDocumentEncoder.cpp b/mozilla/layout/base/src/nsDocumentEncoder.cpp index b840f1716bf..cc8d7783178 100644 --- a/mozilla/layout/base/src/nsDocumentEncoder.cpp +++ b/mozilla/layout/base/src/nsDocumentEncoder.cpp @@ -310,7 +310,6 @@ nsDocumentEncoderFactory::nsDocumentEncoderFactory() nsDocumentEncoderFactory::~nsDocumentEncoderFactory() { MOZ_COUNT_DTOR(nsDocumentEncoderFactory); - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ADDREF(nsDocumentEncoderFactory) diff --git a/mozilla/layout/build/nsLayoutFactory.cpp b/mozilla/layout/build/nsLayoutFactory.cpp index 48362a0a764..02eea4dc211 100644 --- a/mozilla/layout/build/nsLayoutFactory.cpp +++ b/mozilla/layout/build/nsLayoutFactory.cpp @@ -113,7 +113,6 @@ nsLayoutFactory::nsLayoutFactory(const nsCID &aClass) nsLayoutFactory::~nsLayoutFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); #if 0 char* cs = mClassID.ToString(); printf("+++ Destroying layout factory for %s\n", cs); diff --git a/mozilla/mailnews/addrbook/build/nsAbFactory.cpp b/mozilla/mailnews/addrbook/build/nsAbFactory.cpp index b02739e11ce..486d6384b17 100644 --- a/mozilla/mailnews/addrbook/build/nsAbFactory.cpp +++ b/mozilla/mailnews/addrbook/build/nsAbFactory.cpp @@ -94,7 +94,6 @@ nsAbFactory::nsAbFactory(const nsCID &aClass, const char* aClassName, const char nsAbFactory::~nsAbFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); // NS_IF_RELEASE(mServiceManager); PL_strfree(mClassName); PL_strfree(mProgID); diff --git a/mozilla/mailnews/import/oexpress/nsOESettings.cpp b/mozilla/mailnews/import/oexpress/nsOESettings.cpp index ac18bdadab3..228de9912b1 100644 --- a/mozilla/mailnews/import/oexpress/nsOESettings.cpp +++ b/mozilla/mailnews/import/oexpress/nsOESettings.cpp @@ -88,7 +88,6 @@ nsOESettings::nsOESettings() nsOESettings::~nsOESettings() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMPL_ISUPPORTS(nsOESettings, nsIImportSettings::GetIID()); diff --git a/mozilla/mailnews/mime/abstatus/build/nsMiscStatusFactory.cpp b/mozilla/mailnews/mime/abstatus/build/nsMiscStatusFactory.cpp index 7c9baadb063..4d146f57658 100644 --- a/mozilla/mailnews/mime/abstatus/build/nsMiscStatusFactory.cpp +++ b/mozilla/mailnews/mime/abstatus/build/nsMiscStatusFactory.cpp @@ -77,7 +77,6 @@ nsMimeMiscStatusFactory::nsMimeMiscStatusFactory(const nsCID &aClass, nsMimeMiscStatusFactory::~nsMimeMiscStatusFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); PL_strfree(mClassName); PL_strfree(mProgID); } diff --git a/mozilla/mailnews/mime/cthandlers/calendar/nsCalendarFactory.cpp b/mozilla/mailnews/mime/cthandlers/calendar/nsCalendarFactory.cpp index cee37b67e0a..c127adad86d 100644 --- a/mozilla/mailnews/mime/cthandlers/calendar/nsCalendarFactory.cpp +++ b/mozilla/mailnews/mime/cthandlers/calendar/nsCalendarFactory.cpp @@ -76,8 +76,6 @@ nsCalendarFactory::nsCalendarFactory(const nsCID &aClass, nsCalendarFactory::~nsCalendarFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); - NS_IF_RELEASE(mServiceManager); PL_strfree(mClassName); PL_strfree(mProgID); diff --git a/mozilla/mailnews/mime/cthandlers/vcard/nsVCardFactory.cpp b/mozilla/mailnews/mime/cthandlers/vcard/nsVCardFactory.cpp index 9d67eb2b407..a7c5c66c24b 100644 --- a/mozilla/mailnews/mime/cthandlers/vcard/nsVCardFactory.cpp +++ b/mozilla/mailnews/mime/cthandlers/vcard/nsVCardFactory.cpp @@ -76,8 +76,6 @@ nsVCardFactory::nsVCardFactory(const nsCID &aClass, nsVCardFactory::~nsVCardFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); - NS_IF_RELEASE(mServiceManager); PL_strfree(mClassName); PL_strfree(mProgID); diff --git a/mozilla/mailnews/mime/emitters/build/nsEmitterFactory.cpp b/mozilla/mailnews/mime/emitters/build/nsEmitterFactory.cpp index f4a63456c57..d0d2533eb20 100644 --- a/mozilla/mailnews/mime/emitters/build/nsEmitterFactory.cpp +++ b/mozilla/mailnews/mime/emitters/build/nsEmitterFactory.cpp @@ -78,7 +78,6 @@ nsMimeEmitterFactory::nsMimeEmitterFactory(const nsCID &aClass, nsMimeEmitterFactory::~nsMimeEmitterFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); PL_strfree(mClassName); PL_strfree(mProgID); } diff --git a/mozilla/mailnews/mime/src/nsMimeFactory.cpp b/mozilla/mailnews/mime/src/nsMimeFactory.cpp index e92f99b34b6..aeca0954be7 100644 --- a/mozilla/mailnews/mime/src/nsMimeFactory.cpp +++ b/mozilla/mailnews/mime/src/nsMimeFactory.cpp @@ -91,7 +91,6 @@ nsMimeFactory::nsMimeFactory(const nsCID &aClass) nsMimeFactory::~nsMimeFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsMimeFactory::QueryInterface(const nsIID &aIID, void **aResult) diff --git a/mozilla/mailnews/news/build/nsMsgNewsFactory.cpp b/mozilla/mailnews/news/build/nsMsgNewsFactory.cpp index aef6837ea10..b508f082f0d 100644 --- a/mozilla/mailnews/news/build/nsMsgNewsFactory.cpp +++ b/mozilla/mailnews/news/build/nsMsgNewsFactory.cpp @@ -89,8 +89,6 @@ nsMsgNewsFactory::nsMsgNewsFactory(const nsCID &aClass, nsMsgNewsFactory::~nsMsgNewsFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); - PL_strfree(mClassName); PL_strfree(mProgID); } diff --git a/mozilla/modules/libimg/gifcom/nsGIFDecoder.cpp b/mozilla/modules/libimg/gifcom/nsGIFDecoder.cpp index abde0ad7a9d..1ee9e3ec5a6 100644 --- a/mozilla/modules/libimg/gifcom/nsGIFDecoder.cpp +++ b/mozilla/modules/libimg/gifcom/nsGIFDecoder.cpp @@ -51,7 +51,6 @@ GIFDecoder::GIFDecoder(il_container* aContainer) GIFDecoder::~GIFDecoder(void) { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); }; NS_IMETHODIMP diff --git a/mozilla/modules/libimg/jpgcom/nsJPGDecoder.cpp b/mozilla/modules/libimg/jpgcom/nsJPGDecoder.cpp index 85730bfac83..c5ceb8edac0 100644 --- a/mozilla/modules/libimg/jpgcom/nsJPGDecoder.cpp +++ b/mozilla/modules/libimg/jpgcom/nsJPGDecoder.cpp @@ -54,7 +54,6 @@ JPGDecoder::JPGDecoder(il_container* aContainer) JPGDecoder::~JPGDecoder(void) { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); }; diff --git a/mozilla/modules/libimg/pngcom/nsPNGDecoder.cpp b/mozilla/modules/libimg/pngcom/nsPNGDecoder.cpp index f3cddcebc7c..013a2d48fc0 100644 --- a/mozilla/modules/libimg/pngcom/nsPNGDecoder.cpp +++ b/mozilla/modules/libimg/pngcom/nsPNGDecoder.cpp @@ -54,7 +54,6 @@ PNGDecoder::PNGDecoder(il_container* aContainer) PNGDecoder::~PNGDecoder(void) { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); }; static NS_DEFINE_IID(kPNGDecoderIID, NS_PNGDECODER_IID); diff --git a/mozilla/modules/libimg/src/nsIImgDecoder.cpp b/mozilla/modules/libimg/src/nsIImgDecoder.cpp index b93c88bd138..3ffc7380d2e 100644 --- a/mozilla/modules/libimg/src/nsIImgDecoder.cpp +++ b/mozilla/modules/libimg/src/nsIImgDecoder.cpp @@ -63,7 +63,6 @@ ImgFactoryImpl::ImgFactoryImpl(const nsCID &aClass, ImgFactoryImpl::~ImgFactoryImpl() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } NS_IMETHODIMP diff --git a/mozilla/modules/plugin/base/src/nsPluginFactory.cpp b/mozilla/modules/plugin/base/src/nsPluginFactory.cpp index c9d6746b90c..addcd2f6767 100644 --- a/mozilla/modules/plugin/base/src/nsPluginFactory.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginFactory.cpp @@ -68,7 +68,6 @@ nsPluginFactory :: nsPluginFactory(const nsCID &aClass, nsIServiceManager* servi nsPluginFactory :: ~nsPluginFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsPluginFactory :: QueryInterface(const nsIID &aIID, diff --git a/mozilla/modules/plugin/nglsrc/nsPluginFactory.cpp b/mozilla/modules/plugin/nglsrc/nsPluginFactory.cpp index c9d6746b90c..addcd2f6767 100644 --- a/mozilla/modules/plugin/nglsrc/nsPluginFactory.cpp +++ b/mozilla/modules/plugin/nglsrc/nsPluginFactory.cpp @@ -68,7 +68,6 @@ nsPluginFactory :: nsPluginFactory(const nsCID &aClass, nsIServiceManager* servi nsPluginFactory :: ~nsPluginFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); } nsresult nsPluginFactory :: QueryInterface(const nsIID &aIID, diff --git a/mozilla/netwerk/cache/mgr/nsCacheManager.cpp b/mozilla/netwerk/cache/mgr/nsCacheManager.cpp index ee86ae0a4d4..25c287656c8 100644 --- a/mozilla/netwerk/cache/mgr/nsCacheManager.cpp +++ b/mozilla/netwerk/cache/mgr/nsCacheManager.cpp @@ -551,7 +551,6 @@ nsCacheManagerFactory::nsCacheManagerFactory( ) nsCacheManagerFactory::~nsCacheManagerFactory( ) { - NS_ASSERTION(mRefCnt == 0, "Wrong ref count") ; PR_AtomicDecrement(&gInstanceCnt) ; } diff --git a/mozilla/netwerk/cache/obj/nsCacheObject.cpp b/mozilla/netwerk/cache/obj/nsCacheObject.cpp index 83fc96b67e4..dc3bd11996b 100644 --- a/mozilla/netwerk/cache/obj/nsCacheObject.cpp +++ b/mozilla/netwerk/cache/obj/nsCacheObject.cpp @@ -216,7 +216,6 @@ nsCacheObject::~nsCacheObject() if (m_pStream) delete m_pStream; - NS_ASSERTION(mRefCnt == 0, "wrong ref count") ; PR_AtomicDecrement(&gInstanceCnt) ; } @@ -733,7 +732,6 @@ nsCacheObjectFactory::nsCacheObjectFactory () nsCacheObjectFactory::~nsCacheObjectFactory () { - NS_ASSERTION(mRefCnt == 0,"Wrong ref count"); PR_AtomicDecrement(&gInstanceCnt); } diff --git a/mozilla/netwerk/cache/pref/nsCachePref.cpp b/mozilla/netwerk/cache/pref/nsCachePref.cpp index d11178ef051..050783275f3 100644 --- a/mozilla/netwerk/cache/pref/nsCachePref.cpp +++ b/mozilla/netwerk/cache/pref/nsCachePref.cpp @@ -100,7 +100,6 @@ nsCachePref::~nsCachePref() m_DiskCacheFolder = 0; } - NS_ASSERTION(mRefCnt == 0, "Wrong ref count") ; PR_AtomicDecrement(&gInstanceCnt) ; } @@ -318,7 +317,6 @@ nsCachePrefFactory::nsCachePrefFactory () nsCachePrefFactory::~nsCachePrefFactory () { - NS_ASSERTION(mRefCnt == 0,"Wrong ref count"); PR_AtomicDecrement(&gInstanceCnt); } diff --git a/mozilla/parser/htmlparser/src/nsParserFactory.cpp b/mozilla/parser/htmlparser/src/nsParserFactory.cpp index 12f59684548..bbf3c140034 100644 --- a/mozilla/parser/htmlparser/src/nsParserFactory.cpp +++ b/mozilla/parser/htmlparser/src/nsParserFactory.cpp @@ -73,7 +73,6 @@ nsParserFactory::nsParserFactory(const nsCID &aClass) nsParserFactory::~nsParserFactory() { - NS_ASSERTION(mRefCnt == 0, "non-zero refcnt at destruction"); nsHTMLEntities::ReleaseTable(); nsHTMLTags::ReleaseTable(); } diff --git a/mozilla/parser/htmlparser/src/nsTextConverter.cpp b/mozilla/parser/htmlparser/src/nsTextConverter.cpp index dd795bbecd0..e9a6d1d47c2 100644 --- a/mozilla/parser/htmlparser/src/nsTextConverter.cpp +++ b/mozilla/parser/htmlparser/src/nsTextConverter.cpp @@ -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));