Fix a leak when returning boxed types
authorRoss Burton <rburton@src.gnome.org>
Tue, 16 Aug 2005 09:46:37 +0000 (09:46 +0000)
committerRoss Burton <rburton@src.gnome.org>
Tue, 16 Aug 2005 09:46:37 +0000 (09:46 +0000)
addressbook/ChangeLog
addressbook/libebook/e-contact.c

index 81c6260..0af4f17 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-16  Ross Burton  <ross@burtonini.com>
+
+       * libebook/e-contact.c:
+       Fix a leak when returning boxed types.
+
 2005-08-13  Sushma Rai  <rsushma@novell.com>
 
        * backends/ldap/e-book-backend-ldap.c (func_beginswith): Ignoring the
index 4676ef5..336377c 100644 (file)
@@ -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);