extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineChild.cpp
author Andreas Pehrson <pehrsons@gmail.com>
Thu, 05 Nov 2015 15:42:24 +0800
changeset 306659 481d2dace480c02b375a91e902ece00eef223c2b
parent 293114 bc496e1c596316188b986f1c6c8ab632794d7e4e
child 489668 cbb8fdf1daf98a15f7d57f6b08d273bdf96aa1a0
child 559631 69d66af56844c7382bc67953e8dcb3b71dd3207a
permissions -rw-r--r--
Bug 1208371 - Various cleanups in DOMMediaStream/MediaStreamTrack. r?jib

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "RemoteSpellCheckEngineChild.h"

namespace mozilla {

RemoteSpellcheckEngineChild::RemoteSpellcheckEngineChild(mozSpellChecker *aOwner)
  : mOwner(aOwner)
{
}

RemoteSpellcheckEngineChild::~RemoteSpellcheckEngineChild()
{
  // null out the owner's SpellcheckEngineChild to prevent state corruption
  // during shutdown
  mOwner->DeleteRemoteEngine();
}

} //namespace mozilla