diff options
| author | Jin Qian <jinqian@google.com> | 2017-04-03 18:05:01 -0700 |
|---|---|---|
| committer | Jin Qian <jinqian@google.com> | 2017-04-03 23:13:26 -0700 |
| commit | 4e28127e45b9ffedf094390e11013741a46c4722 (patch) | |
| tree | 93f6e4d9f3f3954ee50956a96bff3c498a1583ab /libutils/ProcessCallStack.cpp | |
| parent | 8427357b51bf3ec075d8baefc871713ea30aed3d (diff) | |
storaged: use sp<> to keep refcount for storaged_t object
BatteryListener takes sp<> as parameter. Passing raw storaged_t ptr
to BatteryListener will cause the ptr to be freed when BatteryListener
releases the sp<>. Keep a refcount in storaged to prevent this from
happening.
Test: kill healthd while storaged is running
Bug: 36652060
Change-Id: I96bc45a3bedb39eb7158b8f6c86334b5b31c9346
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions
