summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-07-27 13:54:00 -0700
committerAdam Jackson <ajax@redhat.com>2015-10-26 11:52:58 -0400
commit75399d32f686e8aaa11a5afafacf9fdfad3d1bb4 (patch)
tree54036fc48accca1b14c5be4bf97c6809b77a72c1 /glamor
parent288b355f48c58cbe458cf92d78246a8abcccd946 (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> (cherry picked from commit ea03e314f98e5d8ed7bf7a508006a3d84014bde5)
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c
index 21252bcca..6c2ff28d9 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -207,7 +207,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);
}