Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7be14890 authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix memory leak.

BatteryController only starts tracking jobs that have a power constraint
and stops tracking them if it had previously marked them as being
tracked by the controller. Adding all top-started jobs to its list of
top-started jobs meant that the top-started list would slowly accumulate
jobs that didn't have a power constraint since the controller would
never attempt to remove them from the list.

Bug: 239797636
Test: atest CtsJobSchedulerTestCases
Change-Id: I084586c13772c6942ba841647458f72a941cc087
parent 84ce5aff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment