aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-show.c
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2011-12-10 12:18:54 +0200
committerGravatar David Bremner <bremner@debian.org>2011-12-11 10:32:29 -0400
commit3aca0ea421786e7dc6416390f236886e2f03c58e (patch)
tree586801f30bc61ceadfefcff1c3c71533c3897bce /notmuch-show.c
parent5f9e3f69873335e54a1c6fdb8b3058336198ef78 (diff)
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.
Diffstat (limited to 'notmuch-show.c')
-rw-r--r--notmuch-show.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/notmuch-show.c b/notmuch-show.c
index 603992a6..873a7c4c 100644
--- a/notmuch-show.c
+++ b/notmuch-show.c
@@ -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;
}