Instrumentation to detect leaks of BrowserInstance. r=don

This commit is contained in:
dp%netscape.com 1999-10-07 21:01:16 +00:00
Родитель a20752a6fd
Коммит 48397acd29
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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);
}