From ae5d4a1c17a46c0a6ea2e4c825ecce7a5cbbe28b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 9 May 2007 13:19:54 +0100 Subject: [PATCH] [cairo] Return after detecting the invalid font-options. Do not continue to copy the contents of the nil cairo_font_options_t, but set the error on the context and return. --- src/cairo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cairo.c b/src/cairo.c index a77dfddc0..443e9e047 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -2642,8 +2642,10 @@ cairo_set_font_options (cairo_t *cr, return; status = cairo_font_options_status ((cairo_font_options_t *) options); - if (status) + if (status) { _cairo_set_error (cr, status); + return; + } _cairo_gstate_set_font_options (cr->gstate, options); }