diff options
author | Milan Crha <mcrha@redhat.com> | 2014-04-25 00:58:34 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-04-25 00:59:16 +0800 |
commit | fdde33396195d6287e9b582e7ffe8a3bff453e84 (patch) | |
tree | 2349890c4111d28dd5ac4f90629d211143e08889 /mail | |
parent | f6d59b3008cb3a41a160ec018761108d042d3159 (diff) | |
download | gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.tar gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.tar.gz gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.tar.bz2 gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.tar.lz gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.tar.xz gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.tar.zst gsoc2013-evolution-fdde33396195d6287e9b582e7ffe8a3bff453e84.zip |
Fix various memory leaks
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 3b669b6b4d..b8beeffd5e 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1435,7 +1435,7 @@ sanitize_recipients (const gchar *string) gchar **name; if (!string || !*string) - return (gchar *) ""; + return g_string_free (recipients, FALSE); gstring = g_string_new (""); @@ -1799,7 +1799,7 @@ ml_tree_value_at_ex (ETreeModel *etm, return (gpointer)(res); } else - return (gpointer)(""); + return (gpointer) g_strdup (""); } case COL_LABELS:{ struct LabelsData ld; @@ -2959,6 +2959,7 @@ message_list_duplicate_value (ETreeModel *tree_model, case COL_SENT: case COL_RECEIVED: case COL_SIZE: + case COL_FOLLOWUP_FLAG: case COL_FOLLOWUP_FLAG_STATUS: case COL_FOLLOWUP_DUE_BY: return (gpointer) value; @@ -2970,7 +2971,6 @@ message_list_duplicate_value (ETreeModel *tree_model, case COL_RECIPIENTS: case COL_MIXED_SENDER: case COL_MIXED_RECIPIENTS: - case COL_FOLLOWUP_FLAG: case COL_LOCATION: case COL_LABELS: return g_strdup (value); @@ -2995,19 +2995,19 @@ message_list_free_value (ETreeModel *tree_model, case COL_SENT: case COL_RECEIVED: case COL_SIZE: + case COL_FOLLOWUP_FLAG: case COL_FOLLOWUP_FLAG_STATUS: case COL_FOLLOWUP_DUE_BY: + case COL_FROM: case COL_FROM_NORM: - case COL_SUBJECT_NORM: + case COL_TO: case COL_TO_NORM: + case COL_SUBJECT: + case COL_SUBJECT_NORM: case COL_SUBJECT_TRIMMED: case COL_COLOUR: break; - case COL_FROM: - case COL_SUBJECT: - case COL_TO: - case COL_FOLLOWUP_FLAG: case COL_LOCATION: case COL_SENDER: case COL_RECIPIENTS: @@ -3036,14 +3036,14 @@ message_list_initialize_value (ETreeModel *tree_model, case COL_SENT: case COL_RECEIVED: case COL_SIZE: - case COL_FOLLOWUP_FLAG_STATUS: - case COL_FOLLOWUP_DUE_BY: - return NULL; - case COL_FROM: case COL_SUBJECT: case COL_TO: case COL_FOLLOWUP_FLAG: + case COL_FOLLOWUP_FLAG_STATUS: + case COL_FOLLOWUP_DUE_BY: + return NULL; + case COL_LOCATION: case COL_SENDER: case COL_RECIPIENTS: |