[Bug 49373] New: rethink TpContact<>TpConnection ref cycle
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed May 2 12:35:05 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=49373
Bug #: 49373
Summary: rethink TpContact<>TpConnection ref cycle
Classification: Unclassified
Product: Telepathy
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: tp-glib
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: xclaesse at gmail.com
QAContact: telepathy-bugs at lists.freedesktop.org
>From connection.c::tp_connection_invalidated():
/* Drop the ref we have on all roster contacts, this is to break the refcycle
* we have between TpConnection and TpContact, otherwise self would never
* run dispose.
* Note that invalidated is also called from dispose, so self->priv->roster
* could already be NULL.
*
* FIXME: When we decide to break tp-glib API/guarantees, we should stop
* TpContact taking a strong ref on its TpConnection and force user to keep
* a ref on the TpConnection to use its TpContact, this would avoid the
* refcycle completely. */
--
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