Commit edeb9a22 authored by Alexandre Lissy's avatar Alexandre Lissy
Browse files

Bug 1770086 - Cleanup static on shutdown r=alwu

Depends on D146567

Differential Revision: https://phabricator.services.mozilla.com/D146848
parent 2455fdcc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -151,11 +151,19 @@ void RemoteDecoderManagerChild::Shutdown() {
            sRemoteDecoderManagerChildForRDDProcess->Close();
          }
          sRemoteDecoderManagerChildForRDDProcess = nullptr;
          {
            StaticMutexAutoLock lock(sLaunchRDDMutex);
            sLaunchRDDPromise = nullptr;
          }
          if (sRemoteDecoderManagerChildForUtilityProcess &&
              sRemoteDecoderManagerChildForUtilityProcess->CanSend()) {
            sRemoteDecoderManagerChildForUtilityProcess->Close();
          }
          sRemoteDecoderManagerChildForUtilityProcess = nullptr;
          {
            StaticMutexAutoLock lock(sLaunchUtilityMutex);
            sLaunchUtilityPromise = nullptr;
          }
          if (sRemoteDecoderManagerChildForGPUProcess &&
              sRemoteDecoderManagerChildForGPUProcess->CanSend()) {
            sRemoteDecoderManagerChildForGPUProcess->Close();