bug 1081766 clear mInitializedDecoders and mParentDecoder only once r=kinetik

--HG--
extra : rebase_source : 2652f33a99818ec842233fda29f155fe193b195f
extra : histedit_source : 5711775674d0d68e3e1e7cab48272cb1fa1694ec
This commit is contained in:
Karl Tomlinson 2014-10-10 17:22:41 +13:00
Родитель da35f9945c
Коммит 2c93623f95
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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