diff options
Diffstat (limited to 'uxa/uxa-render.c')
-rw-r--r-- | uxa/uxa-render.c | 3 |
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; } |