mate-power-manager using deprecated get_devices() and leaks UpDevice objects

Bug #1845472 reported by Martin Wimpress 
6
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

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:
    + Add 0001_fix_upower_deprecations.patch. Switch from
      deprecated upower-glib get_devices() to get_devices2(). (LP: #1845472)

 -- Martin Wimpress <email address hidden> Thu, 26 Sep 2019 11:04:37 +0100

Changed in mate-power-manager (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.