зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1319566: ensure all registered handles are cleared properly r=padenot
This commit is contained in:
Родитель
58ae9ee6ce
Коммит
f87db31baf
|
@ -814,10 +814,11 @@ MediaEngineWebRTCMicrophoneSource::Shutdown()
|
|||
|
||||
while (mRegisteredHandles.Length()) {
|
||||
MOZ_ASSERT(mState == kAllocated || mState == kStopped);
|
||||
Deallocate(nullptr); // XXX Extend concurrent constraints code to mics.
|
||||
// on last Deallocate(), FreeChannel()s and DeInit()s if all channels are released
|
||||
Deallocate(mRegisteredHandles[0].get());
|
||||
}
|
||||
MOZ_ASSERT(mState == kReleased);
|
||||
|
||||
FreeChannel();
|
||||
mAudioInput = nullptr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче