commit | d2f81ce28e8ff331bcb12259649d7bb1af0f63e8 | [log] [tgz] |
---|---|---|
author | Fan Xu <fanxu@google.com> | Mon Oct 22 14:02:39 2018 -0700 |
committer | Fan Xu <fanxu@google.com> | Mon Oct 22 14:02:39 2018 -0700 |
tree | 0a4d5f633d5136a7ba63b943633a0597f05db950 | |
parent | 7e86280fb054e731b2f878d680e75fedb6f5f44f [diff] |
Use sp<> on creating BufferHubBinderService The original code implicitly calls the constructor of sp<> in addService() function call, which is not good for readability. Replace it with sp<> could improve readability and avoid possible memory leak if the implementation detail of sp<> changes. Test: atest buffer_hub_binder_service-test (passed) Bug: 115429751 Change-Id: Ice304a638b8d353a3b229e48c17ecd6f32a66f37