From dbdaf0690e1121d0f810dfb035e7a9f0dae17248 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 9 May 2007 09:22:31 +0100 Subject: [PATCH] [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. --- src/cairo-scaled-font.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c index f29835d4f..d6726b35d 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)