From ea03e314f98e5d8ed7bf7a508006a3d84014bde5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 27 Jul 2015 13:54:00 -0700 Subject: [PATCH] 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 Reviewed-by: Dave Airlie --- glamor/glamor.c | 1 - 1 file changed, 1 deletion(-) 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); }