mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
87eb95d004
commit
f3d98518d5
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ BTDiscovery::~BTDiscovery()
|
||||||
{
|
{
|
||||||
m_instance = NULL;
|
m_instance = NULL;
|
||||||
#if defined(BT_SUPPORT)
|
#if defined(BT_SUPPORT)
|
||||||
free(discoveryAgent);
|
delete discoveryAgent;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue