summaryrefslogtreecommitdiff
path: root/opengl/libagl/TextureObjectManager.cpp
diff options
context:
space:
mode:
author George Burgess IV <gbiv@google.com> 2018-10-03 12:08:27 -0700
committer George Burgess IV <gbiv@google.com> 2018-10-03 14:01:40 -0700
commit3ebb48d10d8d478a1dbb9f2991f555c540d4d49a (patch)
tree55b0a8c47d607b79c3227db06b94e707cef6bb51 /opengl/libagl/TextureObjectManager.cpp
parentcd1ce760e8109eb91ce9d3e91fdaabb866262045 (diff)
LayerStats: Fix a use-after-free
std::string::c_str returns memory that's freed when the string dies. So, this method should be returning the string, rather than a pointer to it's freshly-deleted contents. Caught by our static analyzer. Bug: None Test: Builds Change-Id: I3dce7b60c6cfb4e3bfbd6c0dd6fe30dfe7f4313c
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions