[Telepathy-commits] [telepathy-gabble/master] gabble_olpc_gadget_manager_close_all: don't have to manually unref each channel, the hash table does it for us
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Oct 9 08:00:17 PDT 2008
---
src/olpc-gadget-manager.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/src/olpc-gadget-manager.c b/src/olpc-gadget-manager.c
index 769071e..69be183 100644
--- a/src/olpc-gadget-manager.c
+++ b/src/olpc-gadget-manager.c
@@ -91,20 +91,6 @@ gabble_olpc_gadget_manager_close_all (GabbleOlpcGadgetManager *self)
if (self->priv->channels != NULL)
{
- GHashTableIter iter;
- gpointer key, value;
-
- g_hash_table_iter_init (&iter, self->priv->channels);
- while (g_hash_table_iter_next (&iter, &key, &value))
- {
- GabbleOlpcView *channel = GABBLE_OLPC_VIEW (value);
-
- DEBUG ("Channel's refcount is %u before unref",
- G_OBJECT (channel)->ref_count);
-
- g_object_unref (channel);
- }
-
g_hash_table_destroy (self->priv->channels);
self->priv->channels = NULL;
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list