diff options
author | 2019-03-16 20:59:18 -0700 | |
---|---|---|
committer | 2019-04-04 15:05:19 -0700 | |
commit | dbddbfeec34bb644c8cb4cc9dbc02b19ca1abe8f (patch) | |
tree | 743c06b76f96389d7df7bc5189576ce45af7b7c1 /core/btdiscovery.cpp | |
parent | c93f7e4f8c3035f3606ea0082e8c598ffe1232e5 (diff) | |
download | subsurface-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.cpp | 2 |
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 } |