summaryrefslogtreecommitdiff
path: root/tests/ntlm-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2007-11-21 03:51:24 +0000
committerDan Winship <danw@src.gnome.org>2007-11-21 03:51:24 +0000
commitd1e5df3d746de7b5765a3a5bfd0e1a1c1a2fe3e0 (patch)
treef89851d8f3efbd22d4312408820a2f28e0b35783 /tests/ntlm-test.c
parent39bc91bee61a80fc3cc539aa0a3705018b654a4a (diff)
downloadlibsoup-d1e5df3d746de7b5765a3a5bfd0e1a1c1a2fe3e0.tar.gz
libsoup-d1e5df3d746de7b5765a3a5bfd0e1a1c1a2fe3e0.tar.bz2
libsoup-d1e5df3d746de7b5765a3a5bfd0e1a1c1a2fe3e0.zip
don't leak the SoupAddress.
* libsoup/soup-connection.c (soup_connection_connect_async): don't leak the SoupAddress. * libsoup/soup-dns.c (soup_dns_lookup_resolve_async): fix a leak when re-looking up an address * libsoup/soup-session.c (soup_session_abort): close all connections in addition to cancelling messages (needed because connections currently end up holding a ref on their session, preventing them from being destroyed). * tests/auth-test.c: * tests/ntlm-test.c: * tests/proxy-test.c: * tests/pull-api.c: * tests/ssl-test.c: * tests/xmlrpc-test.c: clean up more memory on exit, to help find leaks in the library * tests/libsoup.supp: add a zillion new suppressions so we can use --leak-resolution=med svn path=/trunk/; revision=953
Diffstat (limited to 'tests/ntlm-test.c')
-rw-r--r--tests/ntlm-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ntlm-test.c b/tests/ntlm-test.c
index 9d14aa54..30e01dad 100644
--- a/tests/ntlm-test.c
+++ b/tests/ntlm-test.c
@@ -272,6 +272,7 @@ do_message (SoupSession *session, SoupUri *base_uri, const char *path,
}
dprintf ("\n");
+ g_object_unref (msg);
return errors;
}
@@ -390,7 +391,11 @@ main (int argc, char **argv)
errors = do_ntlm_tests (uri);
soup_uri_free (uri);
+ soup_server_quit (server);
+ g_object_unref (server);
g_main_loop_unref (loop);
+ g_hash_table_destroy (connections);
+ g_main_context_unref (g_main_context_default ());
dprintf ("\n");
if (errors) {