# HG changeset patch # User Andreas Pehrson # Date 1517411293 -3600 # Wed Jan 31 16:08:13 2018 +0100 # Node ID 145ff65a890becba6c258e88c88916f9fc00ef42 # Parent 93a8b769cb7a76aa8eb1c0b182c84d5bdf2fcb71 Bug 1299515 - Fix bustage on a CLOSED TREE. r=me diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -1902,17 +1902,17 @@ MediaManager::EnumerateRawDevices(uint64 if (hasAudio) { nsTArray> audios; GetSources(fakeMics? fakeBackend : realBackend, aAudioType, audios, audioLoopDev.get()); for (auto& source : audios) { result->AppendElement(source); } } - NS_DispatchToMainThread(NewRunnableFrom([id, result{Move(result)}]() mutable { + NS_DispatchToMainThread(NewRunnableFrom([id, result = Move(result)]() mutable { MediaManager* mgr = MediaManager::GetIfExists(); if (!mgr) { return NS_OK; } RefPtr p = mgr->mOutstandingPledges.Remove(id); if (p) { p->Resolve(result.release()); }