aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-manager.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-04-18 08:38:08 +0800
committerLars-Peter Clausen <lars@metafoo.de>2009-04-21 16:42:13 +0800
commitf6712ab01845420000a653856f4a26b09ed3d81a (patch)
treeba496f022a3be24cfed67ea3ce2e95798caed5cb /libempathy/empathy-account-manager.c
parent29f9da6eabff9bda68376384b5f18975c6c483d6 (diff)
downloadgsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.tar
gsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.tar.gz
gsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.tar.bz2
gsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.tar.lz
gsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.tar.xz
gsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.tar.zst
gsoc2013-empathy-f6712ab01845420000a653856f4a26b09ed3d81a.zip
Fix memleak in empathy_account_manager_init. Do not create unused account data.
Diffstat (limited to 'libempathy/empathy-account-manager.c')
-rw-r--r--libempathy/empathy-account-manager.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index ab372f32e..5962a8676 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);