[evolution-patches] e-util leak fix



Small leak in e-util.

--Larry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v
retrieving revision 1.396
diff -u -p -r1.396 ChangeLog
--- ChangeLog	13 Jun 2003 15:22:18 -0000	1.396
+++ ChangeLog	14 Jun 2003 05:04:59 -0000
@@ -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
Index: ename/e-name-western.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/ename/e-name-western.c,v
retrieving revision 1.13
diff -u -p -r1.13 e-name-western.c
--- ename/e-name-western.c	4 Apr 2003 20:59:48 -0000	1.13
+++ ename/e-name-western.c	14 Jun 2003 05:05:00 -0000
@@ -538,8 +538,10 @@ e_name_western_get_suffix_at_str_end (ch
 
 		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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]