* mu-str: fix a leak

This commit is contained in:
djcb 2013-07-03 21:56:04 +03:00
parent 1fcedf742c
commit 3c3cd31607
1 changed files with 2 additions and 0 deletions

View File

@ -1019,6 +1019,8 @@ mu_str_remove_ctrl_in_place (char *str)
if (!iscntrl (*cur))
g_string_append_c (gstr, *cur);
memcpy (str, gstr->str, gstr->len); /* fits */
g_string_free (gstr, TRUE);
break;
}