diff options
Diffstat (limited to 'modules/indic/bengali-x.c')
-rw-r--r-- | modules/indic/bengali-x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/indic/bengali-x.c b/modules/indic/bengali-x.c index fd815a79..ee66c9a0 100644 --- a/modules/indic/bengali-x.c +++ b/modules/indic/bengali-x.c @@ -211,7 +211,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); g_return_if_fail (length >= 0); @@ -239,7 +239,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]; |