"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "e379e53e77778a39ba4e8341dd10a0bd9ac38a3b"
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
Loading
Please register or sign in to comment