Commit 443945e8 authored by Alexandre Lissy's avatar Alexandre Lissy
Browse files

Bug 1753642 - Ensure UtilityProcessHost cleanup in unexpected shutdown r=nika

parent 08550b85
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -268,10 +268,10 @@ void UtilityProcessHost::OnChannelClosed() {
  if (!mShutdownRequested && mListener) {
    // This is an unclean shutdown. Notify our listener that we're going away.
    mListener->OnProcessUnexpectedShutdown(this);
  } else {
    DestroyProcess();
  }

  DestroyProcess();

  // Release the actor.
  UtilityProcessParent::Destroy(std::move(mUtilityProcessParent));
}