[cairo] [PATCH] gl: Fix incorrect array length expression in glyph cache unlock

Dongyeon Kim dy5.kim at samsung.com
Sun Oct 7 18:50:47 PDT 2012


commit b95ec42eb5c64e916e3cd4dd7273745c2f1b39ae
Author: Dongyeon Kim <dy5.kim at samsung.com>
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]);
 }
 


More information about the cairo mailing list