summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-10-12 14:33:08 +0100
committerCarl Worth <cworth@cworth.org>2009-10-13 08:09:43 -0700
commit7ccf084b7a281d8aa877f91401d3df7192da408c (patch)
tree85ea54f4a050cccbae9077d87559c149bbdc8d88 /uxa
parentf858cbe246c5d3a788ae25551b49142c5cc91f1a (diff)
uxa: Free the ScratchPixmapHeader after its associated Picture
Fixes: http://bugs.freedesktop.org/show_bug.cgi?id=24459 Intel Driver > 2.8: Cairo rendering bug, triggered in QtCurve GTK engine Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 7e8f32d0a7279dce1976f87612833d9092554cfe)
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 4850185d..bf1460f2 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -360,8 +360,8 @@ uxa_picture_from_a1_pixman_image (ScreenPtr pScreen,
pSrc = CreatePicture (0, &pPixmap->drawable,
PictureMatchFormat (pScreen, 1, PICT_a1),
0, 0, serverClient, &error);
- FreeScratchPixmapHeader (pPixmap);
if (!pSrc) {
+ FreeScratchPixmapHeader (pPixmap);
FreePicture (pPicture, 0);
return 0;
}
@@ -373,6 +373,7 @@ uxa_picture_from_a1_pixman_image (ScreenPtr pScreen,
width, height);
FreePicture (pSrc, 0);
+ FreeScratchPixmapHeader (pPixmap);
return pPicture;
}