diff options
author | Brian Ewins <Brian.Ewins@gmail.com> | 2007-11-13 00:43:59 +0000 |
---|---|---|
committer | Brian Ewins <Brian.Ewins@gmail.com> | 2007-11-13 00:43:59 +0000 |
commit | e6bc049465730a9640a1038104210d14aad4b3cb (patch) | |
tree | 35ea53bd29eb14dfc4849eba97fce4aa3ca737b3 | |
parent | bb2674207cf01386c6338511d2462694187fff36 (diff) |
[quartz] typo checking for malloc failure
The check after the malloc of cg_advances looked at the wrong
variable.
-rw-r--r-- | src/cairo-quartz-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c index 5abbffa6..d6c2ca79 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; } |