summaryrefslogtreecommitdiff
path: root/pango/pango-tabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-tabs.c')
-rw-r--r--pango/pango-tabs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-tabs.c b/pango/pango-tabs.c
index 7aafb22a..09eeefb8 100644
--- a/pango/pango-tabs.c
+++ b/pango/pango-tabs.c
@@ -242,8 +242,8 @@ pango_tab_array_resize (PangoTabArray *tab_array,
while (new_size > tab_array->allocated)
tab_array->allocated = tab_array->allocated * 2;
- tab_array->tabs = g_realloc (tab_array->tabs,
- tab_array->allocated);
+ tab_array->tabs = g_renew (PangoTab, tab_array->tabs,
+ tab_array->allocated);
init_tabs (tab_array, current_end, tab_array->allocated);
}