OSDN Git Service

Base classes should have virtual destructors
authorPavlin Radoslavov <pavlin@google.com>
Sun, 19 Mar 2017 02:24:05 +0000 (19:24 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Sun, 19 Mar 2017 02:24:05 +0000 (19:24 -0700)
commit110a4dc0739b7ecedd25b52530de581d59eedea7
treedcbb7ef711219e1493925b168b00dc9c4000401b
parent379743d7388db4d359bb7b2dcee75ffc5a9a9c12
Base classes should have virtual destructors

Each base class in service/common/bluetooth now has a virtual
destructor. This fixes memory delete issues that were exposed
when running the unit tests with ASAN enabled.

Test: Running unit tests with ASAN enabled
Change-Id: Ie944eb80784de4ebac3c7276fabed6acb5fec6c0
service/common/bluetooth/advertise_data.h
service/common/bluetooth/advertise_settings.h
service/common/bluetooth/characteristic.h
service/common/bluetooth/descriptor.h
service/common/bluetooth/scan_filter.h
service/common/bluetooth/scan_result.h
service/common/bluetooth/scan_settings.h
service/common/bluetooth/service.h
service/common/bluetooth/uuid.h