From 275e34245117722b8f9131abe69f2c473351430d Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Thu, 7 Oct 1999 21:01:16 +0000 Subject: [PATCH] Instrumentation to detect leaks of BrowserInstance. r=don --- xpfe/browser/src/nsBrowserInstance.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xpfe/browser/src/nsBrowserInstance.cpp b/xpfe/browser/src/nsBrowserInstance.cpp index ddf8cce5bf8..b28615eca62 100644 --- a/xpfe/browser/src/nsBrowserInstance.cpp +++ b/xpfe/browser/src/nsBrowserInstance.cpp @@ -150,8 +150,11 @@ static nsresult setAttribute( nsIWebShell *shell, // nsBrowserAppCore ///////////////////////////////////////////////////////////////////////// +MOZ_DECL_CTOR_COUNTER(nsBrowserAppCore); + nsBrowserAppCore::nsBrowserAppCore() { + MOZ_COUNT_CTOR(nsBrowserAppCore); mContentWindow = nsnull; mContentScriptContext = nsnull; mWebShellWin = nsnull; @@ -166,6 +169,7 @@ nsBrowserAppCore::nsBrowserAppCore() nsBrowserAppCore::~nsBrowserAppCore() { + MOZ_COUNT_DTOR(nsBrowserAppCore); NS_IF_RELEASE(mSHistory); }