[evolution] Fix few valgrind claims



commit b1cbbd1833180a1399ee9c71c7208f3a6d278c4d
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 22 12:38:49 2009 +0200

    Fix few valgrind claims

 e-util/e-plugin.c                |    6 ++++++
 mail/em-folder-tree.c            |    1 +
 modules/mail/e-mail-shell-view.c |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c
index 49a15da..0716ff7 100644
--- a/e-util/e-plugin.c
+++ b/e-util/e-plugin.c
@@ -181,6 +181,8 @@ ep_construct (EPlugin *ep, xmlNodePtr root)
 				} else {
 					ep->hooks = g_slist_append(ep->hooks, hook);
 				}
+			} else {
+				g_free (class);
 			}
 		} else if (strcmp((gchar *)node->name, "description") == 0) {
 			ep->description = e_plugin_xml_content_domain(node, ep->domain);
@@ -464,6 +466,10 @@ ep_load(const gchar *filename, gint load_level)
 		}
 	}
 
+	xmlFreeDoc (pdoc->doc);
+	g_free (pdoc->filename);
+	g_free (pdoc);
+
 	return 0;
 }
 
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index eea990a..d501b58 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -997,6 +997,7 @@ render_icon (GtkTreeViewColumn *column,
 	g_object_set (renderer, "gicon", icon, NULL);
 
 	g_object_unref (icon);
+	g_free (icon_name);
 }
 
 static GtkTreeView *
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 4a96dc0..b2ea509 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -364,7 +364,7 @@ mail_shell_view_update_actions (EShellView *shell_view)
 	guint32 state;
 
 	/* Be descriptive. */
-	gboolean account_is_groupwise;
+	gboolean account_is_groupwise = FALSE;
 	gboolean folder_allows_children;
 	gboolean folder_can_be_deleted;
 	gboolean folder_is_junk;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]