aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-account-chooser.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index e0eb5514f..d716a8308 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -139,12 +139,11 @@ empathy_account_chooser_init (EmpathyAccountChooser *chooser)
static void
account_chooser_finalize (GObject *object)
{
- EmpathyAccountChooser *chooser;
- EmpathyAccountChooserPriv *priv;
-
- chooser = EMPATHY_ACCOUNT_CHOOSER (object);
- priv = GET_PRIV (object);
+ EmpathyAccountChooserPriv *priv = GET_PRIV (object);
+ g_signal_handlers_disconnect_by_func (priv->manager,
+ account_chooser_connection_changed_cb,
+ object);
g_object_unref (priv->manager);
G_OBJECT_CLASS (empathy_account_chooser_parent_class)->finalize (object);