[cairo-commit] src/cairo-scaled-font.c

Brian Ewins brianewins at kemper.freedesktop.org
Fri Feb 9 16:20:43 PST 2007


 src/cairo-scaled-font.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree eec62c297589ca20f4128c889ecad9e96736a07f (from a37f21cb17a24643f7513dff06bc2b5fd38e2583)
Author: Brian Ewins <Brian.Ewins at gmail.com>
Date:   Sat Feb 10 00:20:40 2007 +0000

    Unreleased lock typo in cairo-scaled-font.c
    
    One path through _cairo_scaled_font_text_to_glyphs grabbed
    the mutex but didn't release it, causing hangs in all
    text rendering on the mac.

diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index 6c0455d..02af487 100755
--- a/src/cairo-scaled-font.c
+++ b/src/cairo-scaled-font.c
@@ -809,7 +809,7 @@ _cairo_scaled_font_text_to_glyphs (cairo
 						       glyphs, num_glyphs);
 
         if (status != CAIRO_INT_STATUS_UNSUPPORTED)
-            return status;
+            goto DONE;
     }
 
     status = _cairo_utf8_to_ucs4 ((unsigned char*)utf8, -1, &ucs4, num_glyphs);


More information about the cairo-commit mailing list