Fix few memory leaks in evolution-source-registry
authorMilan Crha <mcrha@redhat.com>
Tue, 12 Feb 2013 13:28:50 +0000 (14:28 +0100)
committerMilan Crha <mcrha@redhat.com>
Tue, 12 Feb 2013 13:28:50 +0000 (14:28 +0100)
libebackend/e-collection-backend.c
libebackend/e-server-side-source.c
modules/gnome-online-accounts/module-gnome-online-accounts.c

index 984854f..51a3356 100644 (file)
@@ -267,6 +267,7 @@ collection_backend_load_resources (ECollectionBackend *backend)
 
        g_object_unref (file);
        g_object_unref (server);
+       g_dir_close (dir);
 }
 
 static ESource *
index 1fadc9d..9bdb47f 100644 (file)
@@ -1485,6 +1485,7 @@ e_server_side_source_new (ESourceRegistryServer *server,
                "uid", uid, NULL);
 
        g_object_unref (dbus_object);
+       g_free (uid);
 
        return source;
 }
index 62c06e5..c336812 100644 (file)
@@ -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