Bug 1008619: Release MediaEngineWebRTC at MediaManager shutdown r=anant

This commit is contained in:
Randell Jesup 2014-05-28 14:38:37 -04:00
parent 49ba04345d
commit 32887f83df

View File

@ -1777,11 +1777,13 @@ MediaManager::Observe(nsISupports* aSubject, const char* aTopic,
mActiveCallbacks.Clear();
mCallIds.Clear();
LOG(("Releasing MediaManager singleton and thread"));
// Note: won't be released immediately as the Observer has a ref to us
sSingleton = nullptr;
if (mMediaThread) {
mMediaThread->Shutdown();
mMediaThread = nullptr;
}
mBackend = nullptr;
}
return NS_OK;