[cogl] cogl-glyph-cache: fix use of uninitialised value.
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] cogl-glyph-cache: fix use of uninitialised value.
- Date: Tue, 13 Mar 2012 13:42:18 +0000 (UTC)
commit 46b1727705b4613a144e4be6b5cd63784bde2dbf
Author: Dave Airlie <airlied redhat com>
Date: Tue Mar 13 13:01:52 2012 +0000
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>
cogl-pango/cogl-pango-glyph-cache.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/cogl-pango/cogl-pango-glyph-cache.c b/cogl-pango/cogl-pango-glyph-cache.c
index 317d826..5ddb4ac 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]