summaryrefslogtreecommitdiffstats
path: root/core
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-03-17 11:23:49 -0700
commitf3d98518d5058bb78d9f3a0cd6416c7ce7ea3f7f (patch)
tree29bd4b8eb95735d59fa74e0cd795cd0441d7f53f /core
parent87eb95d004e48f9db285f6ef83b70836c6afc02e (diff)
downloadsubsurface-f3d98518d5058bb78d9f3a0cd6416c7ce7ea3f7f.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')
-rw-r--r--core/btdiscovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 88d1cd588..3ef0273fe 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -159,7 +159,7 @@ BTDiscovery::~BTDiscovery()
{
m_instance = NULL;
#if defined(BT_SUPPORT)
- free(discoveryAgent);
+ delete discoveryAgent;
#endif
}