From: Ross Burton Date: Tue, 16 Aug 2005 09:46:37 +0000 (+0000) Subject: Fix a leak when returning boxed types X-Git-Tag: upstream/3.7.4~7033 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4220b94e375357c77ca6f8565167c6a0ebe927c;p=platform%2Fupstream%2Fevolution-data-server.git Fix a leak when returning boxed types --- 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);