commit | 7c79f1c09ff0e715e80a0872bf156c8bb7bce08e | [log] [tgz] |
---|---|---|
author | Chris Ye <lzye@google.com> | Wed Oct 12 22:42:51 2022 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Dec 09 19:56:32 2022 +0000 |
tree | 94883950bec47badbd8af96494f0e610f49ac909 | |
parent | dfd60f8706b928b3d7d014fc9e06926ab6c45abd [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 f43bf30eadb6c423e9748a69479fa146a196e8dc) Merged-In: Ia9505a2247bd129665ed3b1ca87f701f7e4c48f6