Bug 106740 - lib: Add a new version of up_client_get_devices which unrefs contents
Summary: lib: Add a new version of up_client_get_devices which unrefs contents
Status: RESOLVED MOVED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-30 21:46 UTC by Robert Ancell
Modified: 2018-06-04 13:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
lib: Add a new version of up_client_get_devices which unrefs contents (3.63 KB, patch)
2018-05-30 21:46 UTC, Robert Ancell
Details | Splinter Review

Description Robert Ancell 2018-05-30 21:46:04 UTC
Created attachment 139873 [details] [review]
lib: Add a new version of up_client_get_devices which unrefs contents

The existing function didn't set the free function on the GPtrArray.
This means a libupower user can easily make a mistake in the reference
counting of the array contents.
Comment 1 GitLab Migration User 2018-06-04 13:23:03 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/upower/upower/issues/14.


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.