Instrument nsScriptNameSpaceManager for leaks (patch on bug 453146, r+sr=bz)

This commit is contained in:
Jesse Ruderman 2008-09-10 14:58:13 -07:00
parent 45e735c1b7
commit 6937a7fa99

View File

@ -135,6 +135,7 @@ GlobalNameHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry,
nsScriptNameSpaceManager::nsScriptNameSpaceManager()
: mIsInitialized(PR_FALSE)
{
MOZ_COUNT_CTOR(nsScriptNameSpaceManager);
}
nsScriptNameSpaceManager::~nsScriptNameSpaceManager()
@ -143,6 +144,7 @@ nsScriptNameSpaceManager::~nsScriptNameSpaceManager()
// Destroy the hash
PL_DHashTableFinish(&mGlobalNames);
}
MOZ_COUNT_DTOR(nsScriptNameSpaceManager);
}
nsGlobalNameStruct *