diff options
author | Eric Anholt <eric@anholt.net> | 2015-07-27 13:54:00 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-07-29 13:58:54 -0700 |
commit | ea03e314f98e5d8ed7bf7a508006a3d84014bde5 (patch) | |
tree | 8bcfea2d3b6a6e5a363bc7d321a64c94cdb9afb1 | |
parent | 6916d32ab3ec1aa922094abce7fac22884ee4e83 (diff) |
glamor: Don't try to free the pixmap priv if we fail to allocate FBO.
Fixes a regression since a2a2f6e34bd49e7ae31779274d52e800595660bc. I
missed this in testing on x86, because we never fail to allocate an
FBO. We do hit this path on VC4, though.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | glamor/glamor.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index 439906ac5..d4a023629 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -194,7 +194,6 @@ glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, if (fbo == NULL) { fbDestroyPixmap(pixmap); - free(pixmap_priv); return fbCreatePixmap(screen, w, h, depth, usage); } |