BluetoothAdvertisement should be unique_ptr owned by caller of BluetoothAdapter::RegisterAdvertisement |
|||
Issue descriptionRight now, BluetoothAdvertisement being ref counted causes problems for clients that do not Unregister before deleting the shared pointer, i.e. the BluetoothAdvertisement becomes "dangling" as the shared pointer is also held by BluetoothAdapter. By making BluetoothAdvertisement unique_ptr owned by clients, we can make sure that its destructor gets called when unique_ptr is deleted, which in turn will call Unregister.
,
Jul 13 2017
,
Jul 25 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by khorimoto@chromium.org
, Jul 11 2017