summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-01-04 07:37:39 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-01-04 07:37:39 +0000
commit1d51ac4cbf268c2c92829c640de3737f56821b39 (patch)
tree1280dd8bd4a9604bb58947d548f1f1988bed18f1 /pango/pango-context.c
parent9ab5414b61cfa36311792e911deb0ac69ca0f341 (diff)
downloadpango-1d51ac4cbf268c2c92829c640de3737f56821b39.tar.gz
Use g_slice for ShaperFontElement allocation. (bug #325728, Matthias
2006-01-04 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c: Use g_slice for ShaperFontElement allocation. (bug #325728, Matthias Clasen)
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 0fdb4e6a..a2f6b757 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -450,7 +450,7 @@ shaper_font_element_destroy (ShaperFontElement *element)
{
if (element->font)
g_object_unref (element->font);
- g_free (element);
+ g_slice_free (ShaperFontElement, element);
}
static ShaperFontCache *
@@ -502,7 +502,7 @@ shaper_font_cache_insert (ShaperFontCache *cache,
PangoEngineShape *shape_engine,
PangoFont *font)
{
- ShaperFontElement *element = g_new (ShaperFontElement, 1);
+ ShaperFontElement *element = g_slice_new (ShaperFontElement);
element->shape_engine = shape_engine;
element->font = font;