summaryrefslogtreecommitdiff
path: root/pango/pango-tabs.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-02-10 19:25:55 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-02-10 19:25:55 +0000
commit6c518ebcdeae62bb7726a891b798cf1cd72e6bec (patch)
tree69ef6284747a53700c75fccd0a2061afcce38236 /pango/pango-tabs.c
parent575835ba425ccd571b4283f6c463591a529e8bf9 (diff)
downloadpango-6c518ebcdeae62bb7726a891b798cf1cd72e6bec.tar.gz
Fix the amount of memory being allocated. (#132994, Torsten Schoenfeld)
Tue Feb 10 14:13:04 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-tabs.c (pango_tab_array_resize): Fix the amount of memory being allocated. (#132994, Torsten Schoenfeld)
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);
}