ECalClient: Remove global "cal_factory" variable.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 25 Feb 2013 03:36:47 +0000 (22:36 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 25 Feb 2013 04:01:07 +0000 (23:01 -0500)
commitca13df546b235a8670107d09336065d1064a7650
treec15d25e8ea6e939ede33eaee4e515e6c27da0163
parent778c983e2fd2013cefc44bc01a757c9ada1f000b
ECalClient: Remove global "cal_factory" variable.

Have cal_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 EDBusCalendarFactory and associated
variables and macros and reduces the potential for reference leaks.
calendar/libecal/e-cal-client.c