diff options
Diffstat (limited to 'pango/pango-tabs.c')
-rw-r--r-- | pango/pango-tabs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c index aedd9bce..c5d727ae 100644 --- a/pango/pango-tabs.c +++ b/pango/pango-tabs.c @@ -79,7 +79,7 @@ pango_tab_array_new (gint initial_size, * If we allowed tab array resizing we'd need to drop this * optimization. */ - array = g_new (PangoTabArray, 1); + array = g_slice_new (PangoTabArray); array->size = initial_size; array->allocated = initial_size; @@ -202,7 +202,7 @@ pango_tab_array_free (PangoTabArray *tab_array) g_free (tab_array->tabs); - g_free (tab_array); + g_slice_free (PangoTabArray, tab_array); } /** |