r=dp; Added in ctor/dtor counting

git-svn-id: svn://10.0.0.236/trunk@49838 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-10-05 14:53:20 +00:00
parent 54966bf91e
commit bcb12509a4
3 changed files with 9 additions and 9 deletions

View File

@@ -607,12 +607,12 @@ nsresult nsWebShell::DestroyPluginHost(void)
//----------------------------------------------------------------------
MOZ_DECL_CTOR(nsWebShell);
MOZ_DECL_CTOR_COUNTER(nsWebShell);
// Note: operator new zeros our memory
nsWebShell::nsWebShell()
{
MOZ_CTOR(nsWebShell);
MOZ_COUNT_CTOR(nsWebShell);
#ifdef DETECT_WEBSHELL_LEAKS
// We're counting the number of |nsWebShells| to help find leaks
++gNumberOfWebShells;
@@ -647,7 +647,7 @@ nsWebShell::nsWebShell()
nsWebShell::~nsWebShell()
{
MOZ_DTOR(nsWebShell);
MOZ_COUNT_DTOR(nsWebShell);
if (nsnull != mHistoryService) {
nsServiceManager::ReleaseService(kGlobalHistoryCID, mHistoryService);
mHistoryService = nsnull;