зеркало из https://github.com/mozilla/gecko-dev.git
Bug 986764: release all webrtc sub-modules before deleting engine r=gcp
This commit is contained in:
Родитель
60df1ee9ac
Коммит
d75fda4229
|
@ -112,6 +112,17 @@ WebrtcAudioConduit::~WebrtcAudioConduit()
|
|||
mOtherDirection->mShutDown = true;
|
||||
mVoiceEngine = nullptr;
|
||||
} else {
|
||||
// We shouldn't delete the VoiceEngine until all these are released!
|
||||
// And we can't use a Scoped ptr, since the order is arbitrary
|
||||
mPtrVoENetwork = nullptr;
|
||||
mPtrVoEBase = nullptr;
|
||||
mPtrVoECodec = nullptr;
|
||||
mPtrVoEXmedia = nullptr;
|
||||
mPtrVoEProcessing = nullptr;
|
||||
mPtrVoEVideoSync = nullptr;
|
||||
mPtrVoERTP_RTCP = nullptr;
|
||||
mPtrRTP = nullptr;
|
||||
|
||||
// only one opener can call Delete. Have it be the last to close.
|
||||
if(mVoiceEngine)
|
||||
{
|
||||
|
|
|
@ -117,6 +117,15 @@ WebrtcVideoConduit::~WebrtcVideoConduit()
|
|||
mOtherDirection->mShutDown = true;
|
||||
mVideoEngine = nullptr;
|
||||
} else {
|
||||
// We can't delete the VideoEngine until all these are released!
|
||||
// And we can't use a Scoped ptr, since the order is arbitrary
|
||||
mPtrViEBase = nullptr;
|
||||
mPtrViECapture = nullptr;
|
||||
mPtrViECodec = nullptr;
|
||||
mPtrViENetwork = nullptr;
|
||||
mPtrViERender = nullptr;
|
||||
mPtrRTP = nullptr;
|
||||
|
||||
// only one opener can call Delete. Have it be the last to close.
|
||||
if(mVideoEngine)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче