diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-12-27 09:55:48 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-12-27 09:55:48 +0000 |
commit | c6f3ebb92c26904fe8c4043c4cfa2051f983851d (patch) | |
tree | cd3df939aee02d807bc96dc52ff0f251bc2c66a8 | |
parent | 064ed86a45773b770c746073871b61c6c050a919 (diff) | |
download | pango-c6f3ebb92c26904fe8c4043c4cfa2051f983851d.tar.gz |
Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias Clasen)
2005-12-27 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/pango-ot-buffer.c: Use g_slice for PangoOTBuffer
allocation. (bug #325026, Matthias Clasen)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | pango/opentype/pango-ot-buffer.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2005-12-27 Behdad Esfahbod <behdad@gnome.org> + + * pango/opentype/pango-ot-buffer.c: Use g_slice for PangoOTBuffer + allocation. (bug #325026, Matthias Clasen) + 2005-12-26 Behdad Esfahbod <behdad@gnome.org> * modules/arabic/arabic-fc.c, diff --git a/pango/opentype/pango-ot-buffer.c b/pango/opentype/pango-ot-buffer.c index 6bb1e071..8d97aea0 100644 --- a/pango/opentype/pango-ot-buffer.c +++ b/pango/opentype/pango-ot-buffer.c @@ -41,7 +41,7 @@ pango_ot_buffer_new (PangoFcFont *font) * probably already have the font locked, however, * so there is little performance penalty. */ - PangoOTBuffer *buffer = g_new (PangoOTBuffer, 1); + PangoOTBuffer *buffer = g_slice_new (PangoOTBuffer); FT_Face face = pango_fc_font_lock_face (font); if (otl_buffer_new (face->memory, &buffer->buffer) != FT_Err_Ok) @@ -68,7 +68,7 @@ pango_ot_buffer_destroy (PangoOTBuffer *buffer) { otl_buffer_free (buffer->buffer); g_object_unref (buffer->font); - g_free (buffer); + g_slice_free (PangoOTBuffer, buffer); } /** |