summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <ssp@redhat.com>2012-08-22 15:27:09 -0400
committerSøren Sandmann <ssp@redhat.com>2012-08-22 15:27:09 -0400
commitd0b2028e6b2ee620d029af6660d3a0cd3bf5d586 (patch)
tree28c6a0cb4fd866c33f992171eec676a980492edc
parent9aa024b97ad8fd4b810cb00e5d21deb9b08105a4 (diff)
uxa: Plug leak in uxa_glyphs_via_masksrender
-rw-r--r--src/uxa/uxa-glyphs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uxa/uxa-glyphs.c b/src/uxa/uxa-glyphs.c
index 4c1b340..ab8a4ca 100644
--- a/src/uxa/uxa-glyphs.c
+++ b/src/uxa/uxa-glyphs.c
@@ -992,8 +992,10 @@ uxa_glyphs_via_mask(CARD8 op,
if (!uxa_screen->info->prepare_composite(PictOpAdd,
this_atlas, NULL, mask,
- src_pixmap, NULL, pixmap))
+ src_pixmap, NULL, pixmap)) {
+ FreePicture(mask, 0);
return -1;
+ }
glyph_atlas = this_atlas;
}