aboutsummaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-16 20:59:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-04 15:05:19 -0700
commitdbddbfeec34bb644c8cb4cc9dbc02b19ca1abe8f (patch)
tree743c06b76f96389d7df7bc5189576ce45af7b7c1 /core/btdiscovery.cpp
parentc93f7e4f8c3035f3606ea0082e8c598ffe1232e5 (diff)
downloadsubsurface-dbddbfeec34bb644c8cb4cc9dbc02b19ca1abe8f.tar.gz
Bluetooth: don't free a resource created by new
Found via LGTM.com Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 578264b48..5630e48e1 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -148,7 +148,7 @@ BTDiscovery::~BTDiscovery()
{
m_instance = NULL;
#if defined(BT_SUPPORT)
- free(discoveryAgent);
+ delete discoveryAgent;
#endif
}