diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2006-08-17 15:25:03 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2006-08-17 15:25:03 +0800 |
commit | 0f25d1b97167821635093cfc558d74cdff0ac521 (patch) | |
tree | 74f60cbca5df0205e667595b949d92087358f0ba /plugins/bbdb | |
parent | cb929003a2d5c780e468c48441f306ddfecc23bc (diff) | |
download | gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar.gz gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar.bz2 gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar.lz gsoc2013-evolution-0f25d1b97167821635093cfc558d74cdff0ac521.tar.xz 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')
-rw-r--r-- | plugins/bbdb/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/bbdb/bbdb.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/bbdb/ChangeLog b/plugins/bbdb/ChangeLog index 621d19c631..d8b1378981 100644 --- a/plugins/bbdb/ChangeLog +++ b/plugins/bbdb/ChangeLog @@ -1,3 +1,8 @@ +2006-08-17 Kjartan Maraas <kmaraas@gnome.org> + + * bbdb.c: (bbdb_open_addressbook), + (create_addressbook_option_menu): Plug a couple leaks. + 2006-08-03 Devashish Sharma <sdevashish@novell.com> * bbdb.c: Gaim and automatic contacts were not seen until 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); |