diff options
-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 } |