mesa: Unlock mutex on error path.

Caught by Coverity (CID 1362021). Caused by commit 015f2207c.
This commit is contained in:
Matt Turner 2016-05-22 07:00:34 -07:00
parent a83e9afbe4
commit bdc9c20df0

View file

@ -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;
}