From 46b1727705b4613a144e4be6b5cd63784bde2dbf Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 13 Mar 2012 13:01:52 +0000 Subject: [PATCH] cogl-glyph-cache: fix use of uninitialised value. While valgrinding gnome-shell I noticed this value was being used uninitialised as the memory is malloced. https://bugzilla.gnome.org/show_bug.cgi?id=671984 Reviewed-by: Robert Bragg Reviewed-by: Neil Roberts --- cogl-pango/cogl-pango-glyph-cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl-pango/cogl-pango-glyph-cache.c b/cogl-pango/cogl-pango-glyph-cache.c index 317d82679..5ddb4acdd 100644 --- a/cogl-pango/cogl-pango-glyph-cache.c +++ b/cogl-pango/cogl-pango-glyph-cache.c @@ -129,6 +129,8 @@ cogl_pango_glyph_cache_new (gboolean use_mipmapping) cache->has_dirty_glyphs = FALSE; + cache->using_global_atlas = FALSE; + cache->use_mipmapping = use_mipmapping; return cache;