[empathy] Add asserts in connection_invalidated_cb
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Add asserts in connection_invalidated_cb
- Date: Wed, 22 Apr 2009 06:28:41 -0400 (EDT)
commit 69cb2388f47ee79dfa4a8465aa8f90680890818d
Author: Xavier Claessens <xclaesse gmail com>
Date: Tue Apr 21 00:48:02 2009 +0200
Add asserts in connection_invalidated_cb
---
libempathy/empathy-account-manager.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index c8cabdd..38f8c60 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]