projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f9e3f6
)
Release memory allocated by internet_address_list_parse_string()
author
Tomi Ollila
<tomi.ollila@iki.fi>
Sat, 10 Dec 2011 10:18:54 +0000
(12:18 +0200)
committer
David Bremner
<bremner@debian.org>
Sun, 11 Dec 2011 14:32:29 +0000
(10:32 -0400)
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.
notmuch-show.c
patch
|
blob
|
history
diff --git
a/notmuch-show.c
b/notmuch-show.c
index 603992a612448c8892888580a4fae68f5aa123dc..873a7c4c15f97edf037ee3a3b0fff782713ded5d 100644
(file)
--- 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;
}