[PATCH] gl: Fix incorrect array length expression in glyph cache unlock
Dongyeon Kim <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <13035713.342951349661047118.JavaMail.weblogic@epml12> |
commit b95ec42eb5c64e916e3cd4dd7273745c2f1b39ae Author: Dongyeon Kim <[email protected]> Date: Mon Oct 8 10:39:47 2012 +0900 gl: Fix incorrect array length expression in glyph cache unlock Should not access the address of glyph_cache when getting the array length. diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c index 45fa042..32302ed 100644 --- a/src/cairo-gl-composite.c +++ b/src/cairo-gl-composite.c @@ -804,7 +804,7 @@ _cairo_gl_composite_flush (cairo_gl_context_t *ctx) _cairo_gl_composite_draw_triangles_with_clip_region (ctx, count); } - for (i = 0; i < ARRAY_LENGTH (&ctx->glyph_cache); i++) + for (i = 0; i < ARRAY_LENGTH (ctx->glyph_cache); i++) _cairo_gl_glyph_cache_unlock (&ctx->glyph_cache[i]); } -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo