diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-03-16 20:59:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-03-17 11:23:49 -0700 |
commit | f3d98518d5058bb78d9f3a0cd6416c7ce7ea3f7f (patch) | |
tree | 29bd4b8eb95735d59fa74e0cd795cd0441d7f53f /core/btdiscovery.cpp | |
parent | 87eb95d004e48f9db285f6ef83b70836c6afc02e (diff) | |
download | subsurface-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/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 2 |
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 } |