mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
* 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:
parent
d200813d39
commit
9a6dfbdbaa
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user