Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp
authorAndreas Pehrson <pehrsons@mozilla.com>
Mon, 20 Aug 2018 10:44:49 +0200
changeset 481197 366a2aa802b5a7bd06328a7162f10292cbde3411
parent 481196 47149b145d5799b924aa9416c761aab210b4507c
child 481198 d7298a19ae439cd34380166828584051c40a3cb3
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersgcp
bugs1478575
milestone63.0a1
Bug 1478575 - Unify CamerasChild shutdown paths. r=gcp
ipc/glue/BackgroundChildImpl.cpp
--- a/ipc/glue/BackgroundChildImpl.cpp
+++ b/ipc/glue/BackgroundChildImpl.cpp
@@ -415,16 +415,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
 // -----------------------------------------------------------------------------