diff options
Diffstat (limited to 'modules/indic/gujarati-x.c')
-rw-r--r-- | modules/indic/gujarati-x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/indic/gujarati-x.c b/modules/indic/gujarati-x.c index 47599b55..1a998b88 100644 --- a/modules/indic/gujarati-x.c +++ b/modules/indic/gujarati-x.c @@ -236,7 +236,7 @@ pango_indic_engine_shape (PangoFont * font, gunichar *wc; int sb; int n_syls; - gunichar **syls = g_malloc (sizeof (gunichar **)); + gunichar **syls = g_new (gunichar *, 2); g_return_if_fail (font != NULL); g_return_if_fail (text != NULL); @@ -263,7 +263,7 @@ pango_indic_engine_shape (PangoFont * font, if (i && (is_consonant (wc[i]) | is_ind_vowel (wc[i])) && wc[i - 1] != VIRAMA) { - syls = g_realloc (syls, ((n_syls + 2) * sizeof (gunichar **))); + syls = g_renew (gunichar *, syls, n_syls + 2); syls[n_syls] = wc + i; n_syls++; sb = glyphs->log_clusters[i]; |