diff options
author | Jorim Jaggi <jjaggi@google.com> | 2017-04-27 17:44:00 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2017-04-28 14:32:23 +0200 |
commit | 0a07650b8d914a9d3c3371feba383ead5343b092 (patch) | |
tree | 65f2177c3d9d7b90427c5669cef3ca752b8bf055 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 04225787d827ab487d3742e0f0237a3b6cd5dd11 (diff) |
Workaround an interpreter behavior to fix leak
When a local variable (cachedThumbnailData) gets out of scope,
the interpreter might still keep a reference to it in the
register. Thus, we extract the handling of this local variable
into a method such that it gets removed from the register.
Test: Open recents, go home, take dump, make sure no reference
from HandlerThread to ThumbnailData is still existing.
Fixes: 37630958
Change-Id: If25456b212341be7a66882a0adfd5afb4a64ce23
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions