[Bug 32116] New: TpBaseConnectionManager leaks legacy protocol objects
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Dec 5 22:21:52 CET 2010
https://bugs.freedesktop.org/show_bug.cgi?id=32116
Summary: TpBaseConnectionManager leaks legacy protocol objects
Product: Telepathy
Version: git master
Platform: Other
OS/Version: All
Status: NEW
Severity: trivial
Priority: medium
Component: tp-glib
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: ollisal at gmail.com
QAContact: telepathy-bugs at lists.freedesktop.org
tp_base_connection_manager_register does:
if (cls->protocol_params != NULL)
{
for (i = 0; cls->protocol_params[i].name != NULL; i++)
{
tp_base_connection_manager_add_protocol (self,
_tp_legacy_protocol_new (self, cls->protocol_params + i));
}
}
and add_protocol does:
g_hash_table_insert (self->priv->protocols,
g_strdup (tp_base_protocol_get_name (protocol)),
g_object_ref (protocol));
and obviously, there is just one unref in total, from the value destructor
specified when creating the protocols hash table. I guess the protocol object
can't be made GInitiallyUnowned; just unref the protocol manually using a temp
var in register()?
--
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