[Telepathy-commits] [telepathy-mission-control/master] Fix a possible crash

Alberto Mardegan alberto.mardegan at nokia.com
Fri Jan 30 04:42:29 PST 2009


---
 src/mcd-master.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mcd-master.c b/src/mcd-master.c
index e3f89d4..ed4dcef 100644
--- a/src/mcd-master.c
+++ b/src/mcd-master.c
@@ -206,7 +206,8 @@ disconnect_account_transport (gpointer key, gpointer value, gpointer userdata)
 	g_debug ("%s: account %s must disconnect",
 		 G_STRFUNC, mcd_account_get_unique_name (account));
         connection = mcd_account_get_connection (account);
-        mcd_connection_close (connection);
+        if (connection)
+            mcd_connection_close (connection);
 	set_account_transport (account, NULL);
 
         /* it may be that there is another transport to which the account can
-- 
1.5.6.5




More information about the telepathy-commits mailing list