mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
bug 1081766 clear mInitializedDecoders and mParentDecoder only once r=kinetik
--HG-- extra : rebase_source : 2652f33a99818ec842233fda29f155fe193b195f extra : histedit_source : 5711775674d0d68e3e1e7cab48272cb1fa1694ec
This commit is contained in:
parent
da35f9945c
commit
2c93623f95
@ -402,10 +402,12 @@ TrackBuffer::BreakCycles()
|
||||
for (uint32_t i = 0; i < mDecoders.Length(); ++i) {
|
||||
mDecoders[i]->GetReader()->BreakCycles();
|
||||
}
|
||||
mInitializedDecoders.Clear();
|
||||
NS_DispatchToMainThread(new ReleaseDecoderTask(mDecoders));
|
||||
MOZ_ASSERT(mDecoders.IsEmpty());
|
||||
mParentDecoder = nullptr;
|
||||
|
||||
// These are cleared in Shutdown()
|
||||
MOZ_ASSERT(mInitializedDecoders.IsEmpty());
|
||||
MOZ_ASSERT(!mParentDecoder);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user