Bug 30304

Summary: stop using tp_get_bus()
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: gabbleAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: 0.11   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/smcv/telepathy-gabble-smcv.git;a=shortlog;h=refs/heads/get-bus
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 24114, 30308    

Description Simon McVittie 2010-09-21 05:58:28 UTC
+++ This bug was initially created as a clone of Bug #24114 +++

tp_get_bus() calls exit(), which is Badâ„¢. We can't remove it til we break ABI, but we can at least deprecate it.

This branch stops using it in Gabble.
Comment 1 Guillaume Desmottes 2010-09-22 00:16:33 UTC
You don't unref the bus in call-stream-endpoint.c.
Comment 2 Simon McVittie 2010-09-22 09:58:49 UTC
*** Bug 30308 has been marked as a duplicate of this bug. ***
Comment 3 Simon McVittie 2010-09-22 10:01:24 UTC
(In reply to comment #1)
> You don't unref the bus in call-stream-endpoint.c.

Fixed (it would have conflicted with my get-bus branch, which you already approved, so I merged that branch into this one first). The resulting branch has one unreviewed commit.
Comment 4 Simon McVittie 2010-09-22 10:11:41 UTC
Bonus extra branch: http://git.collabora.co.uk/?p=user/smcv/telepathy-gabble-smcv.git;a=shortlog;h=refs/heads/010-leaks contains backports of the leak fixes I spotted while fixing Bug #30308 to the 0.10 branch.
Comment 5 Guillaume Desmottes 2010-09-23 00:23:34 UTC
++ for both branches
Comment 6 Simon McVittie 2010-09-28 03:49:17 UTC
Fixed in git for 0.10.1 (leaks only) and 0.11.0 (tp_get_bus, tp_clear_object).

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.