summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2021-05-05 15:51:35 -0700
committerRobert Carr <racarr@google.com>2021-05-05 15:51:35 -0700
commit86b378b810ab3bbcdb1427bdd86a7a4a4065fccd (patch)
tree678dc5df0ae431673619cd535e59dc3f860dda6f /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0e4d7f142b781bb6721c574592ba62a062bad183 (diff)
ANativeWindow_fromSurface: Use acquire not incStrong
When we call incStrong like this, it won't work if the caller of ANativeWindow_fromSurface later calls ANativeWindow_release and so we leak the reference indefinitely. We change to call acquire so that the caller can call release. Bug: 186190571 Test: Existing tests pass Change-Id: I647a856923c891da2d305471f5ff84103d1f9ed5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions