EBookClient: Remove global "book_factory" variable.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 25 Feb 2013 03:18:48 +0000 (22:18 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 25 Feb 2013 04:01:07 +0000 (23:01 -0500)
commit778c983e2fd2013cefc44bc01a757c9ada1f000b
tree9e138716e5adb7b5b1261758a7e72f82cf7355a0
parent5640e47225c4d67b83436741f95f644ff1308caf
EBookClient: Remove global "book_factory" variable.

Have book_client_init_in_dbus_thread() create its own factory proxy,
obtain an object path for the desired backend, and then immediately
destroy the factory proxy object.

This eliminates the global EDBusAddressBookFactory and associated
variables and macros and reduces the potential for reference leaks.
addressbook/libebook/e-book-client.c