summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2018-06-21 18:25:11 -0700
committerHui Yu <huiyu@google.com>2018-06-28 20:09:12 +0000
commit420ed9ef22efce887900a72964b178cc94274bc3 (patch)
tree8bdc89ee58dabc4e3ca2f684d08081bd243f5ad4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent038f1a19ac84dd04097a573df3cc56d8d64a9ed3 (diff)
Fix the memory leak in BatteryStatsImpl.Timebase.mObservers.
The observer does not always remove themself after adding themself into mObservers list. The strong reference in mObservers causes memory leak. The fix is to change mObservers to hold WeakReference. Fix: 80443940 Test: "adb shell cmd battery unplug" and "adb shell cmd battery set ac", observe memory usage from Android Monitor. Change-Id: I27436e350fa0d211c4c64114411a6603824ce599
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions