[cairo-commit] src/cairo-xlib-surface.c
ç½æ¶å Jinghua Luo
jinghua at kemper.freedesktop.org
Fri Jun 16 06:13:40 PDT 2006
src/cairo-xlib-surface.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree 36e59ca5f854de2740c7ef4f0b6022785dd9dc4c (from bf2c0e44d8c8e1e692eafba7bccddd26f1f31c1b)
Author: Jinghua Luo <sunmoon1997 at gmail.com>
Date: Fri Jun 16 21:13:21 2006 +0800
xlib: free resources before return if looking up glyph surface fails.
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 6ec2574..f10d2f4 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -2690,7 +2690,7 @@ _cairo_xlib_surface_show_glyphs (void
CAIRO_SCALED_GLYPH_INFO_SURFACE,
&scaled_glyph);
if (status != CAIRO_STATUS_SUCCESS)
- return status;
+ goto FAIL;
if (scaled_glyph->surface_private == NULL) {
_cairo_xlib_surface_add_glyph (dst->dpy, scaled_font, scaled_glyph);
scaled_glyph->surface_private = (void *) 1;
More information about the cairo-commit
mailing list