diff options
author | Matt Turner <[email protected]> | 2016-05-22 07:00:34 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2016-05-22 07:01:35 -0700 |
commit | bdc9c20df08d724b1eb3d507660f71ff47b9fc7b (patch) | |
tree | 3d03c1e0f68844c2c2d1193fd050739300199796 /src | |
parent | a83e9afbe4bb6e89b95b6bd32c6e7b2b08402c47 (diff) |
mesa: Unlock mutex on error path.
Caught by Coverity (CID 1362021). Caused by commit 015f2207c.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/fbobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index b751bf01532..de28606580f 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2699,6 +2699,7 @@ create_framebuffers(GLsizei n, GLuint *framebuffers, bool dsa) if (dsa) { fb = ctx->Driver.NewFramebuffer(ctx, framebuffers[i]); if (!fb) { + _mesa_HashUnlockMutex(ctx->Shared->FrameBuffers); _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func); return; } |