summaryrefslogtreecommitdiff
path: root/pango/pango-script.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-script.c')
-rw-r--r--pango/pango-script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-script.c b/pango/pango-script.c
index d276e0f2..d0a35920 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -155,7 +155,7 @@ PangoScriptIter *
pango_script_iter_new (const char *text,
int length)
{
- PangoScriptIter *iter = g_new (PangoScriptIter, 1);
+ PangoScriptIter *iter = g_slice_new (PangoScriptIter);
iter->text_start = text;
if (length >= 0)
@@ -185,7 +185,7 @@ pango_script_iter_new (const char *text,
void
pango_script_iter_free (PangoScriptIter *iter)
{
- g_free (iter);
+ g_slice_free (PangoScriptIter, iter);
}
/**