diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-10-13 22:06:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-10-13 22:52:32 +0800 |
commit | f81e89acbf04d70d559f16c0bdf173e5f7f80493 (patch) | |
tree | 38c52ae1320347102c911b359e87297d3fa41a6c /modules/cal-config-contacts | |
parent | ae790f3bcc17004e03f2830bcc7350787eadd530 (diff) | |
download | gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.gz gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.bz2 gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.lz gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.xz gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.zst gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.zip |
Prefer e_source_extension_ref_source().
e_source_extension_get_source() is now deprecated.
Diffstat (limited to 'modules/cal-config-contacts')
-rw-r--r-- | modules/cal-config-contacts/e-source-contacts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/cal-config-contacts/e-source-contacts.c b/modules/cal-config-contacts/e-source-contacts.c index 8e8eac3be6..c19cc6694b 100644 --- a/modules/cal-config-contacts/e-source-contacts.c +++ b/modules/cal-config-contacts/e-source-contacts.c @@ -86,7 +86,7 @@ source_contacts_constructed (GObject *object) G_OBJECT_CLASS (e_source_contacts_parent_class)->constructed (object); extension = E_SOURCE_EXTENSION (object); - source = e_source_extension_get_source (extension); + source = e_source_extension_ref_source (extension); extension_name = E_SOURCE_EXTENSION_ADDRESS_BOOK; backend_extension = e_source_get_extension (source, extension_name); @@ -97,6 +97,8 @@ source_contacts_constructed (GObject *object) contacts_extension = E_SOURCE_CONTACTS (extension); e_source_contacts_set_include_me (contacts_extension, include_me); + + g_object_unref (source); } static void |