diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2016-02-29 16:07:37 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2016-02-29 16:08:34 +0900 |
commit | cf9597791edc284b179f3aeaa64e9d53b5abbf36 (patch) | |
tree | 8d36c98256390454998cad358c4db39c780e0425 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 17fc60e13c2a3b78c0f613d46355e23664fd69f3 (diff) |
Don't pass calling contexts into static services.
When initializing a service, StaticOuterContextServiceFetcher
passes the calling context to it. This causes a leak if the
service stores the context in a static variable.
Instead, pass in the application context, which will never be
freed for the life of the application, and correspondingly rename
StaticOuterContextServiceFetcher to
StaticApplicationContextServiceFetcher.
Bug: 27147995
Change-Id: Ic67ebc32df7368184c2935f0327491fdc7d69836
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions