зеркало из https://github.com/mozilla/gecko-dev.git
bug 1081766
clear mInitializedDecoders and mParentDecoder only once r=kinetik
--HG-- extra : rebase_source : 2652f33a99818ec842233fda29f155fe193b195f extra : histedit_source : 5711775674d0d68e3e1e7cab48272cb1fa1694ec
This commit is contained in:
Родитель
da35f9945c
Коммит
2c93623f95
|
@ -402,10 +402,12 @@ TrackBuffer::BreakCycles()
|
||||||
for (uint32_t i = 0; i < mDecoders.Length(); ++i) {
|
for (uint32_t i = 0; i < mDecoders.Length(); ++i) {
|
||||||
mDecoders[i]->GetReader()->BreakCycles();
|
mDecoders[i]->GetReader()->BreakCycles();
|
||||||
}
|
}
|
||||||
mInitializedDecoders.Clear();
|
|
||||||
NS_DispatchToMainThread(new ReleaseDecoderTask(mDecoders));
|
NS_DispatchToMainThread(new ReleaseDecoderTask(mDecoders));
|
||||||
MOZ_ASSERT(mDecoders.IsEmpty());
|
MOZ_ASSERT(mDecoders.IsEmpty());
|
||||||
mParentDecoder = nullptr;
|
|
||||||
|
// These are cleared in Shutdown()
|
||||||
|
MOZ_ASSERT(mInitializedDecoders.IsEmpty());
|
||||||
|
MOZ_ASSERT(!mParentDecoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Загрузка…
Ссылка в новой задаче