commit | 0a07650b8d914a9d3c3371feba383ead5343b092 | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Thu Apr 27 17:44:00 2017 +0200 |
committer | Jorim Jaggi <jjaggi@google.com> | Fri Apr 28 14:32:23 2017 +0200 |
tree | 65f2177c3d9d7b90427c5669cef3ca752b8bf055 | |
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