From 37ed55acef5ff9d6d053cfb76af8bdcd1f91edd5 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Thu, 3 Jul 2008 20:27:50 +0930 Subject: [PATCH] Add missing status checks --- src/cairo-pdf-operators.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c index abaa4d0d8..a95428203 100644 --- a/src/cairo-pdf-operators.c +++ b/src/cairo-pdf-operators.c @@ -1348,6 +1348,9 @@ _cairo_pdf_operators_show_text_glyphs (cairo_pdf_operators_t *pdf_operators, clusters[i].num_glyphs, backward, scaled_font); + if (status) + return status; + cur_text += clusters[i].num_bytes; if (!backward) cur_glyph += clusters[i].num_glyphs; @@ -1361,6 +1364,8 @@ _cairo_pdf_operators_show_text_glyphs (cairo_pdf_operators_t *pdf_operators, 1, FALSE, scaled_font); + if (status) + return status; } }