Bug 981112 - Destruct MediaDecoderReader first r=padenot

This commit is contained in:
Sotaro Ikeda 2014-03-09 14:27:15 -07:00
parent 525a293941
commit 1361c4bdbf

View File

@ -141,8 +141,10 @@ private:
void Cleanup()
{
MOZ_ASSERT(NS_IsMainThread());
mBufferDecoder = nullptr;
// MediaDecoderReader expects that BufferDecoder is alive.
// Destruct MediaDecoderReader first.
mDecoderReader = nullptr;
mBufferDecoder = nullptr;
}
private: