summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-06 09:09:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-06 09:10:55 +0100
commit5e95c62bbb0cb28ee22af8f97267ce2da72cf47a (patch)
tree033b334694ec7650c4647121862f9d51b59f7009
parenta6ee7aea8ac11a9e5a9b58e17e881db9666a2b24 (diff)
clip: Propagate failure from retrieving the previous clip surface.
-rw-r--r--src/cairo-clip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 939eb1a9..518b7deb 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);