2005-12-27 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/pango-ot-buffer.c: Use g_slice for PangoOTBuffer
allocation. (bug #325026, Matthias Clasen)
* 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)
{
otl_buffer_free (buffer->buffer);
g_object_unref (buffer->font);
- g_free (buffer);
+ g_slice_free (PangoOTBuffer, buffer);
}
/**