projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixes NB#91414, fixes a memory leak
[modest]
/
src
/
modest-utils.c
diff --git
a/src/modest-utils.c
b/src/modest-utils.c
index
fb7089d
..
aceeafb
100644
(file)
--- a/
src/modest-utils.c
+++ b/
src/modest-utils.c
@@
-764,16
+764,19
@@
modest_utils_get_account_name_from_recipient (const gchar *from_header)
if (from) {
gchar *from_email =
modest_text_utils_get_email_address (from);
if (from) {
gchar *from_email =
modest_text_utils_get_email_address (from);
+ gchar *from_header_email =
+ modest_text_utils_get_email_address (from_header);
- if (from_email) {
- if (!modest_text_utils_utf8_strcmp (from_header, from_email, TRUE)) {
+ if (from_email && from_header_email) {
+ if (!modest_text_utils_utf8_strcmp (from_header_email, from_email, TRUE)) {
account_name = g_strdup (node->data);
g_free (from);
g_free (from_email);
break;
}
account_name = g_strdup (node->data);
g_free (from);
g_free (from_email);
break;
}
- g_free (from_email);
}
}
+ g_free (from_email);
+ g_free (from_header_email);
g_free (from);
}
}
g_free (from);
}
}