aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:47:09 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:47:09 +0800
commit90ced50933a59fe67761fa673395cf57296c519c (patch)
treef592da413fb98ef0a0013db9e20a4ed73c7fea08
parentfeb74d528e952da78621dde857938b2adbd6e65f (diff)
downloadgsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.tar
gsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.tar.gz
gsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.tar.bz2
gsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.tar.lz
gsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.tar.xz
gsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.tar.zst
gsoc2013-empathy-90ced50933a59fe67761fa673395cf57296c519c.zip
Disconnect signals when finalizing.
svn path=/trunk/; revision=2047
-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);