Bug 1316221 - Null check mDecoder in RecvShutdown. r=dvander

This commit is contained in:
Matt Woodrow 2016-11-11 15:03:04 +13:00
parent 77e78d9558
commit ab12db3032

View File

@ -153,7 +153,9 @@ bool
VideoDecoderParent::RecvShutdown()
{
MOZ_ASSERT(!mDestroyed);
mDecoder->Shutdown();
if (mDecoder) {
mDecoder->Shutdown();
}
mDecoder = nullptr;
return true;
}