summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-27 12:36:55 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-27 12:36:55 (GMT)
commitcc974fa85908278cce941b0d28e3178ef0b87b8c (patch)
treeb909905e91726e461be6dc17e9b4686b23d52444 /Swiften
parentad8e8feaabb0a35e7e816340fae474d132483275 (diff)
downloadswift-cc974fa85908278cce941b0d28e3178ef0b87b8c.zip
swift-cc974fa85908278cce941b0d28e3178ef0b87b8c.tar.bz2
Fix valgrind warnings & leaks.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Network/PlatformDomainNameResolver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Network/PlatformDomainNameResolver.cpp b/Swiften/Network/PlatformDomainNameResolver.cpp
index 6a61337..ec23091 100644
--- a/Swiften/Network/PlatformDomainNameResolver.cpp
+++ b/Swiften/Network/PlatformDomainNameResolver.cpp
@@ -35,6 +35,7 @@ PlatformDomainNameResolver::~PlatformDomainNameResolver() {
stopRequested = true;
addQueryToQueue(boost::shared_ptr<PlatformDomainNameQuery>());
thread->join();
+ delete thread;
}
boost::shared_ptr<DomainNameServiceQuery> PlatformDomainNameResolver::createServiceQuery(const String& name) {