]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-account-manager.c
Add asserts in connection_invalidated_cb
[empathy.git] / libempathy / empathy-account-manager.c
index c8cabdd0d843000f1d30b46e9ca9fb7df6a6d00d..38f8c608593d0a5ba3d0ea84d8a5435c566e507c 100644 (file)
@@ -139,10 +139,16 @@ connection_invalidated_cb (TpProxy *connection,
   AccountData *data;
 
   DEBUG ("Message: %s", message);
+
   account = g_hash_table_lookup (priv->connections, connection);
+  g_assert (account != NULL);
+
   data = g_hash_table_lookup (priv->accounts, account);
+  g_assert (data != NULL);
+
   g_object_unref (data->connection);
   data->connection = NULL;
+
   g_hash_table_remove (priv->connections, connection);
 }