summaryrefslogtreecommitdiff
path: root/libs/androidfw/LocaleDataLookup.cpp
diff options
context:
space:
mode:
author h00013079 <huangdezhi@hihonor.com> 2025-01-16 10:43:43 +0800
committer h00013079 <huangdezhi@hihonor.com> 2025-01-20 10:51:40 +0800
commit371bac53bc263853d32a299fb96b3757e2925794 (patch)
treedd002ef4cdd507c29f11e5027d5b480675a94ed3 /libs/androidfw/LocaleDataLookup.cpp
parent8405bd14998ba5a456239659687c869a522b1b24 (diff)
Fix the potential memory leak issue caused by setExtension.
The combination of setExtension and Java references may lead to circular references that cannot be released by the GC, due to the strong pointer in the C++ layer associated with setExtension. The solution is to place the setExtension reference at the Java layer, and the native code should retrieve it from the Java object when needed. Bug: https://partnerissuetracker.corp.google.com/issues/390062396 Change-Id: I23c932355878a5c75c89e50b3bb102b0f6c305da Test: presubmit
Diffstat (limited to 'libs/androidfw/LocaleDataLookup.cpp')
0 files changed, 0 insertions, 0 deletions