intel: Fix memory leak in case of renderbuffer bad format
authorVinson Lee <vlee@vmware.com>
Wed, 28 Oct 2009 19:09:44 +0000 (13:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Oct 2009 19:09:44 +0000 (13:09 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/intel/intel_fbo.c

index cf007d5b62bf2f7554f106f2267f48e75072759d..a49868bfef8d8c5007e2a572d352a7cc7ef6baa8 100644 (file)
@@ -385,6 +385,7 @@ intel_create_renderbuffer(GLenum intFormat)
    default:
       _mesa_problem(NULL,
                     "Unexpected intFormat in intel_create_renderbuffer");
+      _mesa_free(irb);
       return NULL;
    }