[libsoup/gnome-2-30] valgrinding updates



commit e2616a3b72c484d551b6d1c7c24d36cb9186080e
Author: Dan Winship <danw gnome org>
Date:   Tue Jun 22 13:06:55 2010 -0400

    valgrinding updates

 tests/libsoup.supp |   18 ++++++++++++++++++
 tests/test-utils.c |    1 +
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/tests/libsoup.supp b/tests/libsoup.supp
index 9b98593..e949183 100644
--- a/tests/libsoup.supp
+++ b/tests/libsoup.supp
@@ -7,12 +7,24 @@
    fun:g_type_init
 }
 {
+   glib/g_type_init_with_debug_flags
+   Memcheck:Leak
+   ...
+   fun:g_type_init_with_debug_flags
+}
+{
    glib/g_thread_init
    Memcheck:Leak
    ...
    fun:g_thread_init
 }
 {
+   glib/g_thread_init_glib
+   Memcheck:Leak
+   ...
+   fun:g_thread_init_glib
+}
+{
    glib/g_type_register_static
    Memcheck:Leak
    ...
@@ -109,6 +121,12 @@
    ...
    fun:g_resolver_get_default
 }
+{
+   glib/g_main_context_push_thread_default
+   Memcheck:Leak
+   ...
+   fun:g_main_context_push_thread_default
+}
 
 # probably using uninitialized memory as padding or something
 {
diff --git a/tests/test-utils.c b/tests/test-utils.c
index 9a13a53..ee3e1c0 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -291,6 +291,7 @@ test_server_new (gboolean in_own_thread, gboolean ssl)
 				       SOUP_SERVER_SSL_CERT_FILE, ssl_cert_file,
 				       SOUP_SERVER_SSL_KEY_FILE, ssl_key_file,
 				       NULL);
+	g_object_unref (addr);
 	if (async_context)
 		g_main_context_unref (async_context);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]