From 71924fc48776c642fe8520febc384250cf55973c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 31 May 2012 10:44:49 +0200 Subject: Fix memory leaks around gtk_tree_model_get() function --- plugins/imap-features/imap-headers.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/imap-features') 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); } -- cgit v1.2.3