[cairo-commit] src/cairo-quartz-surface.c

Brian Ewins brianewins at kemper.freedesktop.org
Mon Nov 12 18:49:22 PST 2007


 src/cairo-quartz-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e6bc049465730a9640a1038104210d14aad4b3cb
Author: Brian Ewins <Brian.Ewins at gmail.com>
Date:   Tue Nov 13 00:43:59 2007 +0000

    [quartz] typo checking for malloc failure
    
    The check after the malloc of cg_advances looked at the wrong
    variable.

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 5abbffa..d6c2ca7 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -1508,7 +1508,7 @@ _cairo_quartz_surface_show_glyphs (void *abstract_surface,
 	}
 
 	cg_advances = (CGSize*) _cairo_malloc_ab (num_glyphs, sizeof(CGSize));
-	if (cg_glyphs == NULL) {
+	if (cg_advances == NULL) {
 	    rv = _cairo_error (CAIRO_STATUS_NO_MEMORY);
 	    goto BAIL;
 	}


More information about the cairo-commit mailing list