mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 664918. Part 6: ImageContainer::GetCurrentAsSurface shouldn't crash when mActiveImage is null. r=bas
This commit is contained in:
parent
b10f6b9538
commit
284af82b77
@ -231,12 +231,15 @@ ImageContainer::GetCurrentAsSurface(gfxIntSize *aSize)
|
||||
CrossProcessMutexAutoLock autoLock(*mRemoteDataMutex);
|
||||
EnsureActiveImage();
|
||||
|
||||
if (!mActiveImage)
|
||||
return nsnull;
|
||||
*aSize = mRemoteData->mSize;
|
||||
return mActiveImage ? mActiveImage->GetAsSurface() : nsnull;
|
||||
} else {
|
||||
if (!mActiveImage)
|
||||
return nsnull;
|
||||
*aSize = mActiveImage->GetSize();
|
||||
}
|
||||
|
||||
*aSize = mActiveImage->GetSize();
|
||||
return mActiveImage ? mActiveImage->GetAsSurface() : nsnull;
|
||||
return mActiveImage->GetAsSurface();
|
||||
}
|
||||
|
||||
gfxIntSize
|
||||
|
Loading…
Reference in New Issue
Block a user