summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-glyph-item.c')
-rw-r--r--pango/pango-glyph-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-glyph-item.c b/pango/pango-glyph-item.c
index 17ffc788..89744df1 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -96,7 +96,7 @@ pango_glyph_item_split (PangoGlyphItem *orig,
num_remaining = orig->glyphs->num_glyphs - num_glyphs;
- new = g_new (PangoGlyphItem, 1);
+ new = g_slice_new (PangoGlyphItem);
split_offset = g_utf8_pointer_to_offset (text + orig->item->offset,
text + orig->item->offset + split_index);
new->item = pango_item_split (orig->item, split_index, split_offset);
@@ -144,7 +144,7 @@ pango_glyph_item_free (PangoGlyphItem *glyph_item)
if (glyph_item->glyphs)
pango_glyph_string_free (glyph_item->glyphs);
- g_free (glyph_item);
+ g_slice_free (PangoGlyphItem, glyph_item);
}
/**