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 <robert@linux.intel.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Dave Airlie 2012-03-13 13:01:52 +00:00 committed by Robert Bragg
parent 6b4fb268d0
commit 46b1727705

View File

@ -129,6 +129,8 @@ cogl_pango_glyph_cache_new (gboolean use_mipmapping)
cache->has_dirty_glyphs = FALSE; cache->has_dirty_glyphs = FALSE;
cache->using_global_atlas = FALSE;
cache->use_mipmapping = use_mipmapping; cache->use_mipmapping = use_mipmapping;
return cache; return cache;