Bug 1318854 - Null check the right pointer in RecvReadback. r=dvander

This commit is contained in:
Matt Woodrow 2016-11-22 15:51:19 +13:00
parent 6c7788b023
commit db4bd4aa1a

View File

@ -198,7 +198,7 @@ VideoDecoderManagerParent::RecvReadback(const SurfaceDescriptorGPUVideo& aSD, Su
}
RefPtr<SourceSurface> source = image->GetAsSourceSurface();
if (!image) {
if (!source) {
*aResult = null_t();
return IPC_OK();
}