commit | 09c00f25af6e711275dd8a562294ebd904c4eace | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue Jul 18 15:59:47 2017 -0700 |
committer | George Burgess IV <gbiv@google.com> | Tue Jul 18 17:00:06 2017 -0700 |
tree | eb86be535f864dc9b9b128e3a592370f82e29f7c | |
parent | 1ad8903bb6f8c7f4b77e71f73cb0ea2aa9db2576 [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