mesa: add missing return when out of memory
authorBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 20:51:43 +0000 (14:51 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 20:51:43 +0000 (14:51 -0600)
src/mesa/main/context.c

index f6d4ac459579dde85c03b3f69034fae8d431e7a3..ac6540f4a065475affca5818e0c35b49ed8be403 100644 (file)
@@ -898,6 +898,7 @@ _mesa_initialize_context(GLcontext *ctx,
       _mesa_free_shared_state(ctx, ctx->Shared);
       if (ctx->Exec)
          _mesa_free(ctx->Exec);
+      return GL_FALSE;
    }
 #if FEATURE_dispatch
    _mesa_init_exec_table(ctx->Exec);