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);