mate-power-manager using deprecated get_devices() and leaks UpDevice objects
Bug #1845472 reported by
Martin Wimpress
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mate-power-manager (Ubuntu) |
Fix Released
|
High
|
Martin Wimpress |
Bug Description
upower-glib get_devices() has been deprecated and get_devices2() was introduced.
The existing code leaks all the UpDevice objects because no free function was set on the returned GPtrArray. Simply switching to get_devices2() does set a free function on the returned GPtrArray, stopping the leak.
Changed in mate-power-manager (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Martin Wimpress (flexiondotorg) |
Changed in mate-power-manager (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
This bug was fixed in the package mate-power-manager - 1.22.2-0ubuntu2
---------------
mate-power-manager (1.22.2-0ubuntu2) eoan; urgency=medium
* debian/patches: upower_ deprecations. patch. Switch from
+ Add 0001_fix_
deprecated upower-glib get_devices() to get_devices2(). (LP: #1845472)
-- Martin Wimpress <email address hidden> Thu, 26 Sep 2019 11:04:37 +0100