summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-05-09 09:22:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-05-09 09:23:57 +0100
commitdbdaf0690e1121d0f810dfb035e7a9f0dae17248 (patch)
tree26ff4bb7e20f0703fb108f178cb82082741737a6 /src/cairo-scaled-font.c
parentb744c2705184c24845423d661258b39bbb17749b (diff)
[cairo-scaled-font] Check _cairo_scaled_glyph_loop() status
In _cairo_scaled_font_glyph_path() we forgot to check the status return of _cairo_scaled_glyph_loop() - propagate any failures.
Diffstat (limited to 'src/cairo-scaled-font.c')
-rw-r--r--src/cairo-scaled-font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index f29835d4..d6726b35 100644
--- a/src/cairo-scaled-font.c
+++ b/src/cairo-scaled-font.c
@@ -1328,6 +1328,8 @@ _cairo_scaled_font_glyph_path (cairo_scaled_font_t *scaled_font,
glyphs[i].index,
CAIRO_SCALED_GLYPH_INFO_SURFACE,
&scaled_glyph);
+ if (status)
+ return status;
glyph_path = _cairo_path_fixed_create ();
if (glyph_path == NULL)