summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2017-05-30 18:52:26 -0700
committerDoris Liu <tianliu@google.com>2017-06-01 20:59:10 +0000
commit0bfce2cc9533c7ffcc00dd0005c1c097de403b81 (patch)
treeed8cd54fbe77005a55a2bde4f663cc8d3b2d3c87 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent29db4b3556c93ab4f621ece30569bc81abc9f773 (diff)
Fix AVD memory leak
The memory leak was caused by a lingering internal listener that held a global ref to the AVD java object when the AVD is infinite. As a result, the native VectorDrawable Tree can not be destroyed, and therefore leak bitmaps. This memory leak is fixed by removing all the internal listeners for all the unfinished AVDs when the animation context is destroyed. BUG: 37518414 Test: follow steps in comment #1 of the bug, and inspect memory heap. Change-Id: Ibbd1547a083b83d0cebd8e304d9b01abda4950ef
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions