empathy r2047 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Jan  6 16:47:09 2009
New Revision: 2047
URL: http://svn.gnome.org/viewvc/empathy?rev=2047&view=rev

Log:
Disconnect signals when finalizing.

Modified:
   trunk/libempathy-gtk/empathy-account-chooser.c

Modified: trunk/libempathy-gtk/empathy-account-chooser.c
==============================================================================
--- trunk/libempathy-gtk/empathy-account-chooser.c	(original)
+++ trunk/libempathy-gtk/empathy-account-chooser.c	Tue Jan  6 16:47:09 2009
@@ -139,12 +139,11 @@
 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);



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