summaryrefslogtreecommitdiff
path: root/libs/ui/DebugUtils.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2018-03-14 13:28:39 -0700
committer chaviw <chaviw@google.com> 2018-03-23 15:53:02 -0700
commit7794ec15e59fd6dd389ba05379ff81287c6ab52f (patch)
treefd63ea2cccd646b46ffcd596cc13eef29893dedc /libs/ui/DebugUtils.cpp
parenta46412ea433d5dae175ad3e471368a44747171a2 (diff)
Use unique_ptr for proto parser to handle destruction.
There's a memory leak where Layers created for the proto tree are not removed when no longer used. This ensures that there's a unique_ptr for each parser layer created so it will be automatically destroyed when out of scope. Merged-In: I56731d28a39e7d9d157c59065102d97f316f3b7d Change-Id: I56731d28a39e7d9d157c59065102d97f316f3b7d Fixes: 74071380 Test: adb shell dumpsys SurfaceFlinger Test: LayerProtoStress.mem_info no longer shows increased memory
Diffstat (limited to 'libs/ui/DebugUtils.cpp')
0 files changed, 0 insertions, 0 deletions