Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 892285 - Only unlock gralloc surfaces if they were locked, r=bas
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwu committed Jul 12, 2013
1 parent 28ad6d8 commit 4017e5b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gfx/layers/client/TextureClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ DeprecatedTextureClientShmem::GetSurface()
void
DeprecatedTextureClientShmem::Unlock()
{
mSurface = nullptr;
if (mSurface) {
mSurface = nullptr;
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
}
mSurfaceAsImage = nullptr;

ShadowLayerForwarder::CloseDescriptor(mDescriptor);
}

gfxImageSurface*
Expand Down

0 comments on commit 4017e5b

Please sign in to comment.