2008-02-06 Dan Winship <danw@gnome.org>
+ * libsoup/soup-server.c (soup_server_add_auth_domain): Ref the
+ auth domain when adding it.
+
+ * tests/continue-test.c (setup_server):
+ * tests/server-auth-test.c (main): Add unrefs here to avoid
+ leaking now
+
+2008-02-06 Dan Winship <danw@gnome.org>
+
* libsoup/soup-message.c (soup_message_set_chunk_allocator): New
method that lets the application set a callback function to use to
allocate SoupBuffers for reading into, so as to avoid needing
priv = SOUP_SERVER_GET_PRIVATE (server);
priv->auth_domains = g_slist_prepend (priv->auth_domains, auth_domain);
+ g_object_ref (auth_domain);
}
/**
SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK, auth_callback,
NULL);
soup_server_add_auth_domain (server, auth_domain);
+ g_object_unref (auth_domain);
return server;
}
SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK, basic_auth_callback,
NULL);
soup_server_add_auth_domain (server, auth_domain);
+ g_object_unref (auth_domain);
auth_domain = soup_auth_domain_digest_new (
SOUP_AUTH_DOMAIN_REALM, "server-auth-test",
SOUP_AUTH_DOMAIN_DIGEST_AUTH_CALLBACK, digest_auth_callback,
NULL);
soup_server_add_auth_domain (server, auth_domain);
+ g_object_unref (auth_domain);
loop = g_main_loop_new (NULL, TRUE);