Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp, a=RyanVM
authorAndreas Pehrson <pehrsons@mozilla.com>
Mon, 20 Aug 2018 10:44:49 +0200
changeset 478555 0d676b757477df5e88d28b3e07f5d199db2e0fe6
parent 478554 880214700c5d88051015929153f9adcca2757154
child 478556 264fcd3206a6b20ef1508a6c6ae351ef281da303
push id9712
push userryanvm@gmail.com
push dateThu, 23 Aug 2018 12:41:46 +0000
treeherdermozilla-beta@264fcd3206a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp, RyanVM
bugs1478575
milestone62.0
Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp, a=RyanVM
ipc/glue/BackgroundChildImpl.cpp
--- a/ipc/glue/BackgroundChildImpl.cpp
+++ b/ipc/glue/BackgroundChildImpl.cpp
@@ -392,16 +392,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
 // -----------------------------------------------------------------------------