Bug 24566

Summary: properly _ref authority in singleton constructor
Product: PolicyKit Reporter: Alexander Sack <asac>
Component: libpolkitAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact: David Zeuthen (not reading bugmail) <zeuthen>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: _ref authority in _get

Description Alexander Sack 2009-10-16 01:41:28 UTC
Created attachment 30474 [details] [review]
_ref authority in _get

we got a bunch of NM crashes that seem to be due to i polkit not reffing the authority in _get ... attached an mbox patch that fixes this.
Comment 1 Alexander Sack 2009-10-16 01:51:08 UTC
Launchpad NM crash bug:

https://bugs.edge.launchpad.net/ubuntu/+source/policykit-1/+bug/438574
Comment 2 Martin Pitt 2009-10-16 04:38:16 UTC
This makes sense, since http://hal.freedesktop.org/docs/polkit/polkit-1-polkitauthority.html#polkit-authority-get says that the object must be unrefed when done with it.
Comment 3 David Zeuthen (not reading bugmail) 2009-10-16 07:01:48 UTC
Yeah, dcbw has been bugging me about this. Thanks for the patch. Committed.

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.