From 348f761a9b7bb90f02dd10bac1aa8059f824a83a Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Mon, 9 Oct 2023 22:13:50 -0400 Subject: [PATCH] Issue #2332 - Fix CamerasChild helper to return by value instead of out-of-scope reference Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1318132 --- dom/media/systemservices/CamerasChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/media/systemservices/CamerasChild.cpp b/dom/media/systemservices/CamerasChild.cpp index abbcc9e223..341c6e17a7 100644 --- a/dom/media/systemservices/CamerasChild.cpp +++ b/dom/media/systemservices/CamerasChild.cpp @@ -223,7 +223,7 @@ public: Dispatch(); } - const T& ReturnValue() const { + T ReturnValue() const { if (mSuccess) { return mSuccessValue; } else {