Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp, a=RyanVM
authorAndreas Pehrson <pehrsons@mozilla.com>
Mon, 20 Aug 2018 10:44:49 +0200
changeset 450033 12213cfa93d9202807fe4074dd471d5704dc885d
parent 450032 d3e100fe45ae459b9e44f5be686bfcebf2b6c392
child 450034 df3fb67f0972d0582cfad2fe750432dddbb5e356
push id151
push userryanvm@gmail.com
push dateThu, 23 Aug 2018 17:52:30 +0000
treeherdermozilla-esr60@b63eb86ff55a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp, RyanVM
bugs1478575
milestone60.1.1
Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp, a=RyanVM
ipc/glue/BackgroundChildImpl.cpp
--- a/ipc/glue/BackgroundChildImpl.cpp
+++ b/ipc/glue/BackgroundChildImpl.cpp
@@ -372,16 +372,17 @@ BackgroundChildImpl::AllocPCamerasChild(
 
 bool
 BackgroundChildImpl::DeallocPCamerasChild(camera::PCamerasChild *aActor)
 {
 #ifdef MOZ_WEBRTC
   RefPtr<camera::CamerasChild> child =
       dont_AddRef(static_cast<camera::CamerasChild*>(aActor));
   MOZ_ASSERT(aActor);
+  camera::Shutdown();
 #endif
   return true;
 }
 
 // -----------------------------------------------------------------------------
 // ServiceWorkerManager
 // -----------------------------------------------------------------------------