[cairo-commit] src/cairo-clip.c

Chris Wilson ickle at kemper.freedesktop.org
Thu May 6 01:11:04 PDT 2010


 src/cairo-clip.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5e95c62bbb0cb28ee22af8f97267ce2da72cf47a
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu May 6 09:09:22 2010 +0100

    clip: Propagate failure from retrieving the previous clip surface.

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 939eb1a..518b7de 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -1067,7 +1067,8 @@ _cairo_clip_path_get_surface (cairo_clip_path_t *clip_path,
 	    int prev_tx, prev_ty;
 
 	    prev_surface = _cairo_clip_path_get_surface (prev, target, &prev_tx, &prev_ty);
-	    if (unlikely (prev_surface->status))
+	    status = prev_surface->status;
+	    if (unlikely (status))
 		goto BAIL;
 
 	    _cairo_pattern_init_for_surface (&pattern, prev_surface);


More information about the cairo-commit mailing list