aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb/bbdb.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-08-17 15:25:03 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-08-17 15:25:03 +0800
commit0f25d1b97167821635093cfc558d74cdff0ac521 (patch)
tree74f60cbca5df0205e667595b949d92087358f0ba /plugins/bbdb/bbdb.c
parentcb929003a2d5c780e468c48441f306ddfecc23bc (diff)
downloadgsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar.gz
gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar.zst
gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.zip
Plug a couple leaks.
2006-08-17 Kjartan Maraas <kmaraas@gnome.org> * bbdb.c: (bbdb_open_addressbook), (create_addressbook_option_menu): Plug a couple leaks. svn path=/trunk/; revision=32560
Diffstat (limited to 'plugins/bbdb/bbdb.c')
-rw-r--r--plugins/bbdb/bbdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c
index 64a00ad9f5..06b0289455 100644
--- a/plugins/bbdb/bbdb.c
+++ b/plugins/bbdb/bbdb.c
@@ -278,8 +278,11 @@ bbdb_open_addressbook (int type)
g_object_unref (G_OBJECT (gconf));
if (uri == NULL)
book = e_book_new_system_addressbook (&error);
- else
+ 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 +406,7 @@ create_addressbook_option_menu (struct bbdb_stuff *stuff, int type)
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);