Bug 1478849. r=mccr8, a=RyanVM
☠☠ backed out by d3e100fe45ae ☠ ☠
authorJed Davis <jld@mozilla.com>
Tue, 21 Aug 2018 15:37:42 -0600
changeset 450030 07aedc90a6c16dca9f0727cb787c2af85aeb3a84
parent 450029 4cb88c2bc63a4b61a58ad1cb0795bf59bca8fe54
child 450031 97ccdfcb42197c37ba788b28b5333495e3d6213a
push id149
push userryanvm@gmail.com
push dateThu, 23 Aug 2018 15:05:47 +0000
treeherdermozilla-esr60@97ccdfcb4219 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8, RyanVM
bugs1478849
milestone60.1.1
Bug 1478849. r=mccr8, a=RyanVM
ipc/glue/ProtocolUtils.cpp
--- a/ipc/glue/ProtocolUtils.cpp
+++ b/ipc/glue/ProtocolUtils.cpp
@@ -583,16 +583,17 @@ IToplevelProtocol::IToplevelProtocol(Pro
    mLastRouteId(aSide == ParentSide ? kFreedActorId : kNullActorId),
    mLastShmemId(aSide == ParentSide ? kFreedActorId : kNullActorId),
    mEventTargetMutex("ProtocolEventTargetMutex")
 {
 }
 
 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