[empathy/gnome-2-26] Fix memleak in empathy_account_manager_init. Do not create unused account data.



commit cdcc19b65b0ecb78e14cc6226e1abe5e20099e36
Author: Lars-Peter Clausen <lars metafoo de>
Date:   Sat Apr 18 02:38:08 2009 +0200

    Fix memleak in empathy_account_manager_init. Do not create unused account data.
---
 libempathy/empathy-account-manager.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index ab372f3..5962a86 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -368,7 +368,6 @@ empathy_account_manager_init (EmpathyAccountManager *manager)
 {
   EmpathyAccountManagerPriv *priv;
   GList *mc_accounts, *l;
-  AccountData *data;
 
   priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
 				      EMPATHY_TYPE_ACCOUNT_MANAGER, EmpathyAccountManagerPriv);
@@ -386,11 +385,7 @@ empathy_account_manager_init (EmpathyAccountManager *manager)
   mc_accounts = mc_accounts_list ();
 
   for (l = mc_accounts; l; l = l->next)
-    {
-      data = account_data_new_default (priv->mc, l->data);
-
-      account_created_cb (priv->monitor, (char *) mc_account_get_unique_name (l->data), manager);
-    }
+    account_created_cb (priv->monitor, (char *) mc_account_get_unique_name (l->data), manager);
 
   g_signal_connect (priv->monitor, "account-created",
                     G_CALLBACK (account_created_cb), manager);



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