mozHunspell::~mozHunspell() { mPersonalDictionary = nsnull; delete mHunspell; NS_UnregisterMemoryReporter(mHunspellReporter); }
StartupCache::~StartupCache() { if (mTimer) { mTimer->Cancel(); } // Generally, the in-memory table should be empty here, // but an early shutdown means either mTimer didn't run // or the write thread is still running. WaitOnWriteThread(); // If we shutdown quickly timer wont have fired. Instead of writing // it on the main thread and block the shutdown we simply wont update // the startup cache. Always do this if the file doesn't exist since // we use it part of the packge step. if (!mArchive) { WriteToDisk(); } gStartupCache = nullptr; NS_UnregisterMemoryReporter(mMappingReporter); NS_UnregisterMemoryReporter(mDataReporter); }
nsLayoutStylesheetCache::~nsLayoutStylesheetCache() { NS_UnregisterMemoryReporter(mReporter); gStyleCache = nullptr; }