aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-06-25 02:43:16 +0800
committerMilan Crha <mcrha@redhat.com>2010-06-25 02:43:16 +0800
commit179db75ce041706a590e90a6ac7b801b36091ed6 (patch)
tree1aad2005c928c833690303d749e477e872009aa2 /composer
parent9d538474a855d64e338bf7a94925cbde31a81bd5 (diff)
downloadgsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.tar
gsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.tar.gz
gsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.tar.bz2
gsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.tar.lz
gsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.tar.xz
gsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.tar.zst
gsoc2013-evolution-179db75ce041706a590e90a6ac7b801b36091ed6.zip
Bug #620815 - Memory leaks with Evolution
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header-table.c2
-rw-r--r--composer/e-composer-name-header.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index 4e1d5232a8..b83bcd96db 100644
--- a/composer/e-composer-header-table.c
+++ b/composer/e-composer-header-table.c
@@ -471,6 +471,7 @@ composer_header_table_from_changed_cb (EComposerHeaderTable *table)
composer_header_table_update_destinations (
old_destinations, always_cc ? account->cc_addrs : NULL);
e_composer_header_table_set_destinations_cc (table, new_destinations);
+ e_destination_freev (old_destinations);
e_destination_freev (new_destinations);
/* Update automatic BCC destinations. */
@@ -480,6 +481,7 @@ composer_header_table_from_changed_cb (EComposerHeaderTable *table)
composer_header_table_update_destinations (
old_destinations, always_bcc ? account->bcc_addrs : NULL);
e_composer_header_table_set_destinations_bcc (table, new_destinations);
+ e_destination_freev (old_destinations);
e_destination_freev (new_destinations);
/* XXX We should NOT be checking specific account types here.
diff --git a/composer/e-composer-name-header.c b/composer/e-composer-name-header.c
index 46121eb7ba..18714abecd 100644
--- a/composer/e-composer-name-header.c
+++ b/composer/e-composer-name-header.c
@@ -154,6 +154,8 @@ composer_name_header_constructor (GType type,
NULL);
E_COMPOSER_HEADER (object)->input_widget = g_object_ref_sink (entry);
+ g_free (label);
+
return object;
}