commit | 7ba019b2a588f559ce8eec292836e7abd9146f30 | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Wed Mar 14 13:28:39 2018 -0700 |
committer | chaviw <chaviw@google.com> | Thu Mar 22 12:48:28 2018 -0700 |
tree | 830a184af034663bc7ef8be9e90c6b1adb01cc25 | |
parent | a5f61831a9d2ae3cf0846b3942e63361a0928857 [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. Change-Id: I56731d28a39e7d9d157c59065102d97f316f3b7d Fixes: 74071380 Test: adb shell dumpsys SurfaceFlinger Test: LayerProtoStress.mem_info no longer shows increased memory