mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1230913 - modified assert in order to prevent null pointer dereference. r=roc
--HG-- extra : rebase_source : d0735da955caaa36dfd74100479b0114a140a926
This commit is contained in:
parent
f3df212995
commit
df2e5b8773
@ -843,7 +843,8 @@ TextureClient::CreateWithBufferSize(ISurfaceAllocator* aAllocator,
|
||||
size_t aSize,
|
||||
TextureFlags aTextureFlags)
|
||||
{
|
||||
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