mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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:
parent
5f9e3f6987
commit
3aca0ea421
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue