diff options
author | Larry Ewing <lewing@ximian.com> | 2003-06-15 04:26:52 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2003-06-15 04:26:52 +0800 |
commit | 6435a460bbeede6788c77f9089dae0c48a3d42cd (patch) | |
tree | 5a3ffbf5d17acb1edd4a7f78ea85cfb804186187 /e-util | |
parent | 22341b44fdb6a79d374f6c0bfafb117aa66b4dd8 (diff) | |
download | gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.tar gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.tar.gz gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.tar.bz2 gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.tar.lz gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.tar.xz gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.tar.zst gsoc2013-evolution-6435a460bbeede6788c77f9089dae0c48a3d42cd.zip |
free word before breaking out of the loop.
2003-06-14 Larry Ewing <lewing@ximian.com>
* e-name-western.c (e_name_western_get_suffix_at_str_end): free
word before breaking out of the loop.
svn path=/trunk/; revision=21446
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/ename/e-name-western.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index e95f4df92a..edda367a86 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2003-06-14 Larry Ewing <lewing@ximian.com> + + * e-name-western.c (e_name_western_get_suffix_at_str_end): free + word before breaking out of the loop. + 2003-06-12 Rodrigo Moya <rodrigo@ximian.com> * e-config-listener.c (add_key): use GCONF_CLIENT_PRELOAD_RECURSIVE 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); |