commit | e1da9a7afc11841c27f84f732d747c410acbfc98 | [log] [tgz] |
---|---|---|
author | Chris Ye <lzye@google.com> | Wed Oct 12 22:42:51 2022 -0700 |
committer | android-t2 <xiaocong.gu@t2mobile.com> | Wed Feb 15 10:11:07 2023 +0800 |
tree | 62d4f859a81fb9b1593eb7fd9eddab341958c514 | |
parent | 0691938fb409c1f741a9630c07f5a9528e082005 [diff] |
Use sp<T>::make to create the sp pointer for EventLoopCallback In wificond, EventLoopCallback is derrived from MessageHandler, which is derrived from RefBase, so we should be using sp<T>::make to create the smart pointer so the incStrong will occur on the Refbase object. Bug: 243362981 Test: Flash hwasan build and do wificond scan, do not observe crash. Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 Change-Id: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6 (cherry picked from commit a9de1657e9915a2d47fb87a3f55ac97157ad53b6) Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6