コード例 #1
0
ファイル: mozHunspell.cpp プロジェクト: fitzgen/v8monkey
mozHunspell::~mozHunspell()
{
  mPersonalDictionary = nsnull;
  delete mHunspell;

  NS_UnregisterMemoryReporter(mHunspellReporter);
}
コード例 #2
0
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);
}
コード例 #3
0
nsLayoutStylesheetCache::~nsLayoutStylesheetCache()
{
  NS_UnregisterMemoryReporter(mReporter);
  gStyleCache = nullptr;
}