From d4220b94e375357c77ca6f8565167c6a0ebe927c Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 16 Aug 2005 09:46:37 +0000 Subject: [PATCH] Fix a leak when returning boxed types --- addressbook/ChangeLog | 5 +++++ addressbook/libebook/e-contact.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 81c6260..0af4f17 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2005-08-16 Ross Burton + + * libebook/e-contact.c: + Fix a leak when returning boxed types. + 2005-08-13 Sushma Rai * backends/ldap/e-book-backend-ldap.c (func_beginswith): Ignoring the diff --git a/addressbook/libebook/e-contact.c b/addressbook/libebook/e-contact.c index 4676ef5..336377c 100644 --- a/addressbook/libebook/e-contact.c +++ b/addressbook/libebook/e-contact.c @@ -1199,7 +1199,7 @@ e_contact_get_property (GObject *object, if (attr) rv = info->struct_getter (contact, attr); - g_value_set_boxed (value, rv); + g_value_take_boxed (value, rv); } else if (info->t & E_CONTACT_FIELD_TYPE_GETSET) { EVCardAttribute *attr = e_contact_get_first_attr (contact, info->vcard_field_name); -- 2.7.4