Patch for two leaks in the bbdb plugin

Kjartan Maraas <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1155737156.28210.14.camel@rivendell>
More leak fixage.

Cheers
Kjartan

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
bbdb-plugin-leak.patch (text/x-patch, 891 B)
Index: bbdb/bbdb.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/bbdb/bbdb.c,v
retrieving revision 1.16
diff -u -p -r1.16 bbdb.c
--- bbdb/bbdb.c	3 Aug 2006 11:35:23 -0000	1.16
+++ bbdb/bbdb.c	16 Aug 2006 14:04:41 -0000
@@ -280,6 +280,7 @@ bbdb_open_addressbook (int type)
 		book = e_book_new_system_addressbook (&error);
 	else
 		book = e_book_new_from_uri (uri, &error);
+	g_free (uri);
 	if (book == NULL) {
 		g_warning ("bbdb: failed to get addressbook: %s\n", error->message);
 		g_error_free (error);
@@ -403,6 +404,7 @@ create_addressbook_option_menu (struct b
 	if (selected_source_uri != NULL) {
 		selected_source = e_source_new_with_absolute_uri ("", selected_source_uri);
 		e_source_option_menu_select (E_SOURCE_OPTION_MENU (menu), selected_source);
+		g_free (selected_source_uri);
 	}
 
 	gtk_widget_show (menu);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.