Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp, a=IanN CLOSED TREE DONTBUILD SEAMONKEY_2_49_ESR_RELBRANCH
authorAndreas Pehrson <pehrsons@mozilla.com>
Mon, 20 Aug 2018 10:44:49 +0200
branchSEAMONKEY_2_49_ESR_RELBRANCH
changeset 357543 9fa9839606c350c4654b8b9b4a4c67ec24a42fb0
parent 357542 d9407a1c48594c6ed20e7cbb4f8c24854afe0484
child 357544 d09a499ebaec77cc805be98a8ae3b99f1876e33d
push id7834
push userfrgrahl@gmx.net
push dateSun, 13 Jan 2019 12:17:02 +0000
treeherdermozilla-esr52@6e4ad8a8f2e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp, IanN
bugs1478575
milestone52.9.1
Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp, a=IanN CLOSED TREE DONTBUILD mozilla-esr52 SEAMONKEY_2_49_ESR_RELBRANCH
ipc/glue/BackgroundChildImpl.cpp
--- a/ipc/glue/BackgroundChildImpl.cpp
+++ b/ipc/glue/BackgroundChildImpl.cpp
@@ -307,16 +307,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
 // -----------------------------------------------------------------------------