mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1008619: Release MediaEngineWebRTC at MediaManager shutdown r=anant
This commit is contained in:
parent
49ba04345d
commit
32887f83df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user