[Bug 39188] TpFileTransferChannel: add API to send and receive the file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 9 19:05:33 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39188

--- Comment #5 from Will Thompson <will.thompson at collabora.co.uk> 2011-11-09 10:05:33 PST ---
+static void
+invalidated_cb (TpFileTransferChannel *self,
+    guint domain,
+    gint code,
+    gchar *message,
+    gpointer user_data)
+{
+  /* stop splicing */
+  g_cancellable_cancel (self->priv->cancellable);
+}
+

I don't think this is safe. TpProxy's _dispose() method, which is called after
TpFileTransferChannel's, emits invalidated if the proxy wasn't already
invalidated. But by that time, self->priv->cancellable will have been freed by
TpFTChannel's _dispose() implementation.

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



More information about the telepathy-bugs mailing list