summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2019-08-26 17:36:42 -0700
committerHans Boehm <hboehm@google.com>2019-11-18 21:37:19 +0000
commitccdecaa0c5cd3004fd6493b6056abff71b8c85b3 (patch)
tree2273ff2393ca0a33bcb1ddc431000bbe2357e891 /server/NetworkController.cpp
parent47085528b81989907b9497a38548614925c92af4 (diff)
Don't create sp<> to stack allocated mHwSvc
RefBase-derived objects should always be allocated in the heap. They should also immediately become the target of an sp. The original NetdHwService did not allow correct use. It privately (and indirectly) inherited from RefBase, making it impossible to generate an sp<> to it, as all clients should. We change the interface to make this possible. Bug: 138956784 Test: Booted with change. Change-Id: Ia977f8a7f1a8bb554fc5e0bfcce056939c688812
Diffstat (limited to 'server/NetworkController.cpp')
0 files changed, 0 insertions, 0 deletions