[evolution-patches] Patch for two leaks in the bbdb plugin



More leak fixage.

Cheers
Kjartan

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);


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