aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/imap-features/imap-headers.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-31 16:44:49 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-31 16:44:49 +0800
commit71924fc48776c642fe8520febc384250cf55973c (patch)
tree6b2f1738675f111dfb664805f82ad27add135715 /plugins/imap-features/imap-headers.c
parentc88d3170304e1892b221d0581a3cd3c767de4281 (diff)
downloadgsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar
gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.gz
gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.bz2
gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.lz
gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.xz
gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.tar.zst
gsoc2013-evolution-71924fc48776c642fe8520febc384250cf55973c.zip
Fix memory leaks around gtk_tree_model_get() function
Diffstat (limited to 'plugins/imap-features/imap-headers.c')
-rw-r--r--plugins/imap-features/imap-headers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/imap-features/imap-headers.c b/plugins/imap-features/imap-headers.c
index 3a0917fa53..56f7e4f5b4 100644
--- a/plugins/imap-features/imap-headers.c
+++ b/plugins/imap-features/imap-headers.c
@@ -168,10 +168,12 @@ epif_add_sensitivity (EPImapFeaturesData *ui)
0, &header_name,
-1);
if (g_ascii_strcasecmp (header_name, entry_contents) == 0) {
+ g_free (header_name);
gtk_widget_set_sensitive (GTK_WIDGET (ui->add_header), FALSE);
return;
}
+ g_free (header_name);
valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (ui->store), &iter);
}