From cc974fa85908278cce941b0d28e3178ef0b87b8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Mon, 27 Dec 2010 13:36:55 +0100
Subject: Fix valgrind warnings & leaks.


diff --git a/QA/valgrind.supp b/QA/valgrind.supp
index 6074c58..8601b60 100644
--- a/QA/valgrind.supp
+++ b/QA/valgrind.supp
@@ -53,6 +53,12 @@
 }
 
 {
+	<insert_a_suppression_name_here>
+	Memcheck:Cond
+	fun:BN_num_bits
+}
+
+{
    <insert a suppression name here>
    Memcheck:Value4
    fun:BN_mod_exp_mont_consttime
@@ -67,4 +73,20 @@
    fun:BN_mod_exp_mont
 }
 
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Value8
+   fun:BN_num_bits
+}
 
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Value8
+   fun:BN_mod_exp_mont_consttime
+}
+
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Cond
+   fun:*mersenne_twister*
+}
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) {
-- 
cgit v0.10.2-6-g49f6