* 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.
This commit is contained in:
Øyvind Kolås 2008-03-04 11:16:05 +00:00
parent d200813d39
commit 9a6dfbdbaa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-03-04 Øyvind Kolås <pippin@o-hand.com>
* 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 <ebassi@openedhand.com> 2008-03-03 Emmanuele Bassi <ebassi@openedhand.com>
* Makefile.am: Do not recurse into doc if we did not explicitly * Makefile.am: Do not recurse into doc if we did not explicitly

View File

@ -370,7 +370,7 @@ draw_glyph (PangoRenderer *renderer_,
g->generation = tc_generation; g->generation = tc_generation;
else else
{ {
g = g_slice_new (glyph_info); g = g_slice_new0 (glyph_info);
_pango_clutter_font_set_glyph_cache_destroy _pango_clutter_font_set_glyph_cache_destroy
(font, (GDestroyNotify)free_glyph_info); (font, (GDestroyNotify)free_glyph_info);