summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2017-07-18 15:59:47 -0700
committerGeorge Burgess IV <gbiv@google.com>2017-07-18 17:00:06 -0700
commit09c00f25af6e711275dd8a562294ebd904c4eace (patch)
treeeb86be535f864dc9b9b128e3a592370f82e29f7c /tools/aapt2/java/JavaClassGenerator.cpp
parent1ad8903bb6f8c7f4b77e71f73cb0ea2aa9db2576 (diff)
Fix use-after-free
Since putOrDelete may delete the layer, we shouldn't be accessing its member after calling it. Caught by the static analyzer: frameworks/base/libs/hwui/renderstate/OffscreenBufferPool.cpp:183:44: warning: Use of memory after it is freed Bug: 27101951 Test: mma. Static analyzer warning is gone. Change-Id: I25ee8b45ede608da52bf58d1d9f52ce3bb60d4cb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions