Closed Bug 1267214 Opened 8 years ago Closed 8 years ago

Private DBus connections must be closed before final unref

Categories

(Core :: IPC, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: tzimmermann, Assigned: tzimmermann)

References

Details

(Whiteboard: btpp-active)

Attachments

(2 files)

Private connection over DBus must be closed by the caller. We can do that automatically with |UniquePtr|.
See Also: → 1266033
Hi Shawn,

with this type |UniquePtr| can manage instances of |DBusConnection|.
Attachment #8744867 - Flags: review?(shuang)
This is a follow-up patch to bug 1266033. It makes sure that the DBus connection is closed correctly before the data structure goes out of scope. Have a look at bug 1266705 comment 2 and below for some context.
Attachment #8744868 - Flags: review?(bzbarsky)
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #2)
> Created attachment 8744868 [details] [diff] [review]
> [02] Bug 1267214: Close private DBus connection in
> |nsDBusHandlerApp::LaunchWithURI|
> 
> This is a follow-up patch to bug 1266033. It makes sure that the DBus
> connection is closed correctly before the data structure goes out of scope.
> Have a look at bug 1266705 comment 2 and below for some context.

Is there an easy way of testing this?
Whiteboard: btpp-active
Comment on attachment 8744868 [details] [diff] [review]
[02] Bug 1267214: Close private DBus connection in |nsDBusHandlerApp::LaunchWithURI|

r=me
Attachment #8744868 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/58318cd3faec
https://hg.mozilla.org/mozilla-central/rev/b97e26486559
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: