commit | a0a16278232f4f5806c46417ae4ec24cab7f869b | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Wed Mar 03 15:23:35 2021 -0800 |
committer | Ady Abraham <adyabr@google.com> | Fri Mar 05 22:10:28 2021 +0000 |
tree | 67d3d264696cb3f1ab8b8b8a41240054674cfb9b | |
parent | eca9d75c3de367645931e621d13f1b8d13d46569 [diff] |
Fix memory leaks in libsurfaceflinger_unittest Every class that inherits from RefBase must be held by an sp<>. Creating a RefBAse object without an sp<> causes a memory leak. Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Bug: 181807839 Change-Id: I37ec274b01c5212a5a3cecc2e1eb5b4c9d6122f4