From 9a6dfbdbaa8f5de0247cdc33ca714b162c08ac73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 4 Mar 2008 11:16:05 +0000 Subject: [PATCH] * clutter/pango/pangoclutter-render.c: (draw_glyph): use g_slice_new0 instead of g_slice_new when allocating the glyph_info, avoiding a branch based on uninitialized memory. --- ChangeLog | 6 ++++++ clutter/pango/pangoclutter-render.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 243929ba8..785cc3190 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-04 Øyvind Kolås + + * clutter/pango/pangoclutter-render.c: (draw_glyph): use g_slice_new0 + instead of g_slice_new when allocating the glyph_info, avoiding a + branch based on uninitialized memory. + 2008-03-03 Emmanuele Bassi * Makefile.am: Do not recurse into doc if we did not explicitly diff --git a/clutter/pango/pangoclutter-render.c b/clutter/pango/pangoclutter-render.c index 4b9fba18c..11ac0829f 100644 --- a/clutter/pango/pangoclutter-render.c +++ b/clutter/pango/pangoclutter-render.c @@ -370,7 +370,7 @@ draw_glyph (PangoRenderer *renderer_, g->generation = tc_generation; else { - g = g_slice_new (glyph_info); + g = g_slice_new0 (glyph_info); _pango_clutter_font_set_glyph_cache_destroy (font, (GDestroyNotify)free_glyph_info);