[evolution-data-server] Fix few memory leaks in evolution-source-registry



commit 0e929a1a893b31c8826e6e2bf5f9fa47a7653cba
Author: Milan Crha <mcrha redhat com>
Date:   Tue Feb 12 14:28:50 2013 +0100

    Fix few memory leaks in evolution-source-registry

 libebackend/e-collection-backend.c                 |    1 +
 libebackend/e-server-side-source.c                 |    1 +
 .../module-gnome-online-accounts.c                 |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libebackend/e-collection-backend.c b/libebackend/e-collection-backend.c
index 984854f..51a3356 100644
--- a/libebackend/e-collection-backend.c
+++ b/libebackend/e-collection-backend.c
@@ -267,6 +267,7 @@ collection_backend_load_resources (ECollectionBackend *backend)
 
 	g_object_unref (file);
 	g_object_unref (server);
+	g_dir_close (dir);
 }
 
 static ESource *
diff --git a/libebackend/e-server-side-source.c b/libebackend/e-server-side-source.c
index 1fadc9d..9bdb47f 100644
--- a/libebackend/e-server-side-source.c
+++ b/libebackend/e-server-side-source.c
@@ -1485,6 +1485,7 @@ e_server_side_source_new (ESourceRegistryServer *server,
 		"uid", uid, NULL);
 
 	g_object_unref (dbus_object);
+	g_free (uid);
 
 	return source;
 }
diff --git a/modules/gnome-online-accounts/module-gnome-online-accounts.c b/modules/gnome-online-accounts/module-gnome-online-accounts.c
index 62c06e5..c336812 100644
--- a/modules/gnome-online-accounts/module-gnome-online-accounts.c
+++ b/modules/gnome-online-accounts/module-gnome-online-accounts.c
@@ -480,6 +480,7 @@ gnome_online_accounts_config_password (EGnomeOnlineAccounts *extension,
 	secret_password_store_finish (result, &error);
 
 	g_free (display_name);
+	g_free (password);
 
 	/* If we fail to store the password, we'll just end up prompting
 	 * for a password like normal.  Annoying, maybe, but not the end


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