[evolution-patches] shell, calendar, e-util leaks



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/shell/ChangeLog,v
retrieving revision 1.1284
diff -u -r1.1284 ChangeLog
--- ChangeLog	16 Jun 2003 17:19:56 -0000	1.1284
+++ ChangeLog	19 Jun 2003 15:10:12 -0000
@@ -1,3 +1,8 @@
+2003-06-19  Dan Winship  <danw ximian com>
+
+	* e-folder-tree.c (e_folder_tree_add): Don't leak parent_path,
+	even on error
+
 2003-06-16  Frederic Crozat  <fcrozat mandrakesoft com>
 
 	* Makefile.am:
Index: e-folder-tree.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-folder-tree.c,v
retrieving revision 1.14
diff -u -r1.14 e-folder-tree.c
--- e-folder-tree.c	18 Jul 2002 18:16:18 -0000	1.14
+++ e-folder-tree.c	19 Jun 2003 15:10:12 -0000
@@ -262,8 +262,10 @@
 	if (parent_folder == NULL) {
 		g_warning ("e_folder_tree_add() -- Trying to add a subfolder to a path that does not exist yet -- %s",
 			   parent_path);
+		g_free (parent_path);
 		return FALSE;
 	}
+	g_free (parent_path);
 
 	folder = g_hash_table_lookup (folder_tree->path_to_folder, path);
 	if (folder != NULL) {
@@ -284,8 +286,6 @@
 
 	g_hash_table_insert (folder_tree->path_to_folder, folder->path, folder);
 	g_hash_table_insert (folder_tree->data_to_path, data, folder->path);
-
-	g_free (parent_path);
 
 	return TRUE;
 }
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v
retrieving revision 1.397
diff -u -r1.397 ChangeLog
--- ChangeLog	14 Jun 2003 20:26:52 -0000	1.397
+++ ChangeLog	19 Jun 2003 15:12:41 -0000
@@ -1,3 +1,8 @@
+2003-06-19  Dan Winship  <danw ximian com>
+
+	* e-xml-hash-utils.c (e_xml_to_hash): don't leak an extra copy of
+	the values
+
 2003-06-14  Larry Ewing  <lewing ximian com>
 
 	* e-name-western.c (e_name_western_get_suffix_at_str_end): free
Index: e-xml-hash-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-xml-hash-utils.c,v
retrieving revision 1.2
diff -u -r1.2 e-xml-hash-utils.c
--- e-xml-hash-utils.c	12 Mar 2003 17:28:35 -0000	1.2
+++ e-xml-hash-utils.c	19 Jun 2003 15:12:41 -0000
@@ -54,6 +54,7 @@
 		}
 
 		g_hash_table_insert (hash, g_strdup (key), g_strdup (value));
+		xmlFree (value);
 	}
 
 	return hash;
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.1794
diff -u -r1.1794 ChangeLog
--- ChangeLog	19 Jun 2003 14:24:24 -0000	1.1794
+++ ChangeLog	19 Jun 2003 15:13:04 -0000
@@ -1,3 +1,8 @@
+2003-06-19  Dan Winship  <danw ximian com>
+
+	* pcs/cal-backend.c (cal_backend_finalize): don't leak the
+	CalBackendPrivate.
+
 2003-06-12  Jack Jia <jack jia sun com>
  
  	* gui/e-itip-control.c
Index: pcs/cal-backend.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/pcs/cal-backend.c,v
retrieving revision 1.94
diff -u -r1.94 cal-backend.c
--- pcs/cal-backend.c	20 May 2003 12:00:38 -0000	1.94
+++ pcs/cal-backend.c	19 Jun 2003 15:13:06 -0000
@@ -251,6 +251,8 @@
 	if (priv->category_idle_id)
 		g_source_remove (priv->category_idle_id);
 
+	g_free (priv);
+
 	G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 


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