aboutsummaryrefslogtreecommitdiffstats
path: root/modules/book-config-ldap
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-13 22:06:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-13 22:52:32 +0800
commitf81e89acbf04d70d559f16c0bdf173e5f7f80493 (patch)
tree38c52ae1320347102c911b359e87297d3fa41a6c /modules/book-config-ldap
parentae790f3bcc17004e03f2830bcc7350787eadd530 (diff)
downloadgsoc2013-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/book-config-ldap')
-rw-r--r--modules/book-config-ldap/e-source-ldap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/book-config-ldap/e-source-ldap.c b/modules/book-config-ldap/e-source-ldap.c
index a491409029..18bb104498 100644
--- a/modules/book-config-ldap/e-source-ldap.c
+++ b/modules/book-config-ldap/e-source-ldap.c
@@ -20,8 +20,6 @@
#include <ldap.h>
-#include <libedataserver/libedataserver.h>
-
#define E_SOURCE_LDAP_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), E_TYPE_SOURCE_LDAP, ESourceLDAPPrivate))
@@ -245,7 +243,7 @@ source_ldap_constructed (GObject *object)
const gchar *extension_name;
this_extension = E_SOURCE_EXTENSION (object);
- source = e_source_extension_get_source (this_extension);
+ source = e_source_extension_ref_source (this_extension);
extension_name = E_SOURCE_EXTENSION_AUTHENTICATION;
other_extension = e_source_get_extension (source, extension_name);
@@ -270,6 +268,8 @@ source_ldap_constructed (GObject *object)
source_ldap_transform_enum_nick_to_value,
source_ldap_transform_enum_value_to_nick,
NULL, (GDestroyNotify) NULL);
+
+ g_object_unref (source);
}
static void