diff options
Diffstat (limited to 'e-util/ename/e-name-western.c')
-rw-r--r-- | e-util/ename/e-name-western.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/e-util/ename/e-name-western.c b/e-util/ename/e-name-western.c index 081ddc64e0..b6802c4333 100644 --- a/e-util/ename/e-name-western.c +++ b/e-util/ename/e-name-western.c @@ -538,8 +538,10 @@ e_name_western_get_suffix_at_str_end (char *str) word = e_name_western_get_preceding_word (str, p - str); nextp = p - strlen (word); - if (nextp == str) + if (nextp == str) { + g_free (word); break; + } nextp = g_utf8_prev_char (nextp); e_name_western_cleanup_string (& word); |