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

Carl Worth cworth at kemper.freedesktop.org
Fri Mar 9 13:42:17 PST 2007


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

New commits:
diff-tree ef284a2d6bbeae8711226f1f1f2cf4936f6937eb (from 772edc9133d41dfd667ae5915dfa6ace0bcbfd0d)
Author: Carl Worth <cworth at cworth.org>
Date:   Fri Mar 9 13:36:03 2007 -0800

    Fix a LOCK vs. UNLOCK typo, (yes, I'm that stupid).
    
    Thanks to M.Drochner at fz-juelich.de for noticing the bug.
    
    This fixes bug #10235:
    
    	locking bug in cairo_ft_scaled_font_unlock_face()
    	http://bugs.freedesktop.org/show_bug.cgi?id=10235

diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 27bc2e3..d2df281 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -2495,7 +2495,7 @@ cairo_ft_scaled_font_unlock_face (cairo_
      * cairo_ft_scaled_font_lock_face, so we have to acquire it again
      * as _cairo_ft_unscaled_font_unlock_face expects it to be held
      * when we call into it. */
-    CAIRO_MUTEX_UNLOCK (scaled_font->unscaled->mutex);
+    CAIRO_MUTEX_LOCK (scaled_font->unscaled->mutex);
 
     _cairo_ft_unscaled_font_unlock_face (scaled_font->unscaled);
 }


More information about the cairo-commit mailing list