Bug 994024 - Discard TextureClients that we failed to allocate or lock. r=bjacob

This commit is contained in:
Nicolas Silva
2014-04-11 18:48:10 +02:00
parent dc8482aeb9
commit fd477b6661
2 changed files with 3 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ CanvasClient2D::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
}
if (!mBuffer->Lock(OPEN_WRITE_ONLY)) {
mBuffer = nullptr;
return;
}