Bug 1478849. r=mccr8
authorJed Davis <jld@mozilla.com>
Tue, 21 Aug 2018 15:37:42 -0600
changeset 487813 9c34c00e44d0b021fb1d5ac4bf464b9de4955374
parent 487812 08d82015e170d4e618918db0d219f2abf5eb8ea0
child 487814 e1d3e4328869ff77054ec33c35e2f7a75d7e4b8f
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1478849
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1478849. r=mccr8
ipc/glue/ProtocolUtils.cpp
--- a/ipc/glue/ProtocolUtils.cpp
+++ b/ipc/glue/ProtocolUtils.cpp
@@ -681,16 +681,17 @@ IToplevelProtocol::IToplevelProtocol(con
   , mOtherPid(mozilla::ipc::kInvalidProcessId)
   , mOtherPidState(ProcessIdState::eUnstarted)
   , mIsMainThreadProtocol(false)
 {
 }
 
 IToplevelProtocol::~IToplevelProtocol()
 {
+  mState = nullptr;
   if (mTrans) {
     RefPtr<DeleteTask<Transport>> task = new DeleteTask<Transport>(mTrans.release());
     XRE_GetIOMessageLoop()->PostTask(task.forget());
   }
 }
 
 base::ProcessId
 IToplevelProtocol::OtherPid() const