aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/addressbook-component.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 650d267a79..c3432bf9d5 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-03 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #540152
+
+ * gui/component/addressbook-component.c: (ensure_sources):
+ Unref source only when we created it - the list owns the pointer now.
+
2008-06-24 Milan Crha <mcrha@redhat.com>
** Fix for bug #539755
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 55e9535840..b55cb9bd16 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -151,6 +151,7 @@ ensure_sources (AddressbookComponent *component)
/* Create the default Person addressbook */
ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
e_source_group_add_source (on_this_computer, source, -1);
+ g_object_unref (source);
e_source_set_property (source, "completion", "true");
@@ -164,8 +165,7 @@ ensure_sources (AddressbookComponent *component)
on_ldap_servers = group;
}
- if (personal_source)
- g_object_unref (personal_source);
+
g_free (base_uri_proto);
g_free (base_uri);
}