mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1230911 - modified asseert in order to prevent null pointer dereference. r=roc
--HG-- extra : rebase_source : 04bbec02d594e0006ed127005a3cc653cb5e195f
This commit is contained in:
parent
af49ee7fbe
commit
ca7864726d
@ -693,7 +693,8 @@ TextureClient::CreateForDrawing(CompositableForwarder* aAllocator,
|
||||
TextureFlags aTextureFlags,
|
||||
TextureAllocationFlags aAllocFlags)
|
||||
{
|
||||
MOZ_ASSERT(aAllocator->IPCOpen());
|
||||
// also test the validity of aAllocator
|
||||
MOZ_ASSERT(aAllocator && aAllocator->IPCOpen());
|
||||
if (!aAllocator || !aAllocator->IPCOpen()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user