Index: ChangeLog
===================================================================
--- ChangeLog	(révision 9055)
+++ ChangeLog	(copie de travail)
@@ -1,3 +1,8 @@
+2008-06-26  Julien Puydt  <jpuydt@gnome.org>
+
+	* libedataserver/e-source-group.c: Added missing g_object_unref on
+	sources, fixing leaks and bug #540152.
+
 2008-06-23  Jeffrey Stedfast  <fejj@novell.com>
 
 	* configure.in: Doltify
Index: libedataserver/e-source-group.c
===================================================================
--- libedataserver/e-source-group.c	(révision 9055)
+++ libedataserver/e-source-group.c	(copie de travail)
@@ -316,6 +316,7 @@
 			goto done;
 		}
 		e_source_group_add_source (new, new_source, -1);
+		g_object_unref (new_source);
 	}
 
 	e_source_group_set_readonly (new, readonly_str && !strcmp (GC readonly_str, "yes"));
@@ -713,6 +714,7 @@
 							      group);
 			g_signal_emit (group, signals[SOURCE_REMOVED], 0, source);
 			g_signal_emit (group, signals[CHANGED], 0);
+			g_object_unref (source);
 			return TRUE;
 		}
 	}
@@ -742,6 +744,7 @@
 							      group);
 			g_signal_emit (group, signals[SOURCE_REMOVED], 0, source);
 			g_signal_emit (group, signals[CHANGED], 0);
+			g_object_unref (source);
 			return TRUE;
 		}
 	}
