[Bug 20903] Support ContactCapabilities draft 2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 10 18:36:19 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20903





--- Comment #2 from Will Thompson <will.thompson at collabora.co.uk>  2009-09-10 09:36:19 PST ---
+        TpHandle handle = tp_handle_ensure (dispatcher->priv->string_pool,
+                                            cap_tokens[i], NULL, NULL);
+
+        if (handle != 0)

It should never be 0, surely.

+        vas = g_ptr_array_sized_new (g_hash_table_size (self->priv->clients));
+
+        g_hash_table_iter_init (&iter, self->priv->clients);
+
+        while (g_hash_table_iter_next (&iter, NULL, &p))
+        {
+            mcd_dispatcher_append_client_caps (self, p, vas);
+        }

         // do some stuff

+        g_ptr_array_foreach (vas, (GFunc) g_value_array_free, NULL);
+        g_ptr_array_free (vas, TRUE);

This code occurs twice; maybe it's worth function-ifying? That said, it would
be longer that way. :)

Otherwise, looks good!


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list