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/book-config-webdav | |
parent | ae790f3bcc17004e03f2830bcc7350787eadd530 (diff) | |
download | gsoc2013-evolution-f81e89acbf04d70d559f16c0bdf173e5f7f80493.tar.gz 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/book-config-webdav')
-rw-r--r-- | modules/book-config-webdav/evolution-book-config-webdav.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/book-config-webdav/evolution-book-config-webdav.c b/modules/book-config-webdav/evolution-book-config-webdav.c index 78b92a6384..0e7a6f30f2 100644 --- a/modules/book-config-webdav/evolution-book-config-webdav.c +++ b/modules/book-config-webdav/evolution-book-config-webdav.c @@ -94,7 +94,7 @@ book_config_webdav_text_to_uri (GBinding *binding, return FALSE; target = g_binding_get_target (binding); - source = e_source_extension_get_source (E_SOURCE_EXTENSION (target)); + source = e_source_extension_ref_source (E_SOURCE_EXTENSION (target)); extension_name = E_SOURCE_EXTENSION_AUTHENTICATION; extension = e_source_get_extension (source, extension_name); @@ -104,6 +104,8 @@ book_config_webdav_text_to_uri (GBinding *binding, g_value_take_boxed (target_value, soup_uri); + g_object_unref (source); + return TRUE; } |