Summary: | rethink TpContact<>TpConnection ref cycle | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Xavier Claessens <xclaesse> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | xclaesse |
Version: | unspecified | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.collabora.com/git/user/xclaesse/telepathy-glib.git/log/?h=next-contact-conn-refcycle | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 31668 | ||
Attachments: |
Abort preparing contact-list feature early if CONTACTS iface is missing
Small coding style fix TpConnection: Fix leaked result when preparing contact-list feature Rename _tp_contact_connection_invalidated to _disposed TpContact: stop keeping strong ref on its connection Add unit test for TpContact<>TpConnection refcounting NEWS |
Description
Xavier Claessens
2012-05-02 03:35:05 UTC
Created attachment 62384 [details] [review] Abort preparing contact-list feature early if CONTACTS iface is missing Current code has issues: 1) It's possible it completes without returning to mainloop first 2) contact-list-state could regress from SUCCESS to FAILED Created attachment 62385 [details] [review] Small coding style fix Created attachment 62386 [details] [review] TpConnection: Fix leaked result when preparing contact-list feature Created attachment 62387 [details] [review] Rename _tp_contact_connection_invalidated to _disposed That function is called from TpConnection::dispose, not when invalidated Created attachment 62388 [details] [review] TpContact: stop keeping strong ref on its connection Reset TpContact::connection to NULL when connection is disposed Created attachment 62389 [details] [review] Add unit test for TpContact<>TpConnection refcounting patches 1-4 probably needs backporting to master. Created attachment 62390 [details] [review] NEWS (In reply to comment #7) > patches 1-4 probably needs backporting to master. Guillaume reviewed them and they are merged in master already. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.