summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2005-12-27 09:55:48 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-12-27 09:55:48 +0000
commitc6f3ebb92c26904fe8c4043c4cfa2051f983851d (patch)
treecd3df939aee02d807bc96dc52ff0f251bc2c66a8
parent064ed86a45773b770c746073871b61c6c050a919 (diff)
downloadpango-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--ChangeLog5
-rw-r--r--pango/opentype/pango-ot-buffer.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 79287e07..6d1b404b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}
/**