Permalink
Browse files

Fix memleaks.

  • Loading branch information...
1 parent 5b482e1 commit 2a7d86c1bc52d79e35154392c58c7c2977d5830d @ueno committed Feb 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/transliteratorm17n.c
@@ -114,6 +114,7 @@ transliterator_m17n_real_transliterate (TranslitTransliterator *self,
{
gchar *output = mtext_to_utf8 (mt);
g_string_append (string, output);
+ g_free (output);
}
m17n_object_unref (mt);
n_filtered = 0;
@@ -125,6 +126,7 @@ transliterator_m17n_real_transliterate (TranslitTransliterator *self,
{
gchar *output = mtext_to_utf8 (m17n->ic->preedit);
g_string_append (string, output);
+ g_free (output);
}
*endpos = g_utf8_strlen (input, -1) - n_filtered;

0 comments on commit 2a7d86c

Please sign in to comment.