Release memory allocated by internet_address_list_parse_string()

g_object_unref() releases the memory of the InternetAddressList object
returned by internet_address_list_parse_string() -- when last (only)
reference is released, internet_address_list_finalize() will do cleanup.
This commit is contained in:
Tomi Ollila 2011-12-10 12:18:54 +02:00 committed by David Bremner
parent 5f9e3f6987
commit 3aca0ea421

View file

@ -255,7 +255,9 @@ _extract_email_address (const void *ctx, const char *from)
email = talloc_strdup (ctx, email);
DONE:
/* XXX: How to free addresses here? */
if (addresses)
g_object_unref (addresses);
return email;
}