Bluetooth: don't free a resource created by new
Found via LGTM.com Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c93f7e4f8c
commit
dbddbfeec3
@ -148,7 +148,7 @@ BTDiscovery::~BTDiscovery()
|
||||
{
|
||||
m_instance = NULL;
|
||||
#if defined(BT_SUPPORT)
|
||||
free(discoveryAgent);
|
||||
delete discoveryAgent;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user