libsoup r1037 - in branches/libsoup-2.4: . libsoup



Author: danw
Date: Tue Jan 15 14:40:37 2008
New Revision: 1037
URL: http://svn.gnome.org/viewvc/libsoup?rev=1037&view=rev

Log:
	* libsoup/soup-server.c (soup_server_run_async):
	(soup_server_quit): Don't ref/unref the server here. It doesn't
	match the way other things work. #494128, Mathias Hasselmann.


Modified:
   branches/libsoup-2.4/ChangeLog
   branches/libsoup-2.4/libsoup/soup-server.c

Modified: branches/libsoup-2.4/libsoup/soup-server.c
==============================================================================
--- branches/libsoup-2.4/libsoup/soup-server.c	(original)
+++ branches/libsoup-2.4/libsoup/soup-server.c	Tue Jan 15 14:40:37 2008
@@ -761,9 +761,6 @@
  * running. In the simple case where you did not set the server's
  * %SOUP_SERVER_ASYNC_CONTEXT property, this means the server will run
  * whenever the glib main loop is running.
- *
- * soup_server_run_async() refs @server, so you should run
- * soup_server_quit() to unref it when you are done.
  **/
 void
 soup_server_run_async (SoupServer *server)
@@ -783,7 +780,6 @@
 
 	g_signal_connect (priv->listen_sock, "new_connection",
 			  G_CALLBACK (new_connection), server);
-	g_object_ref (server);
 
 	return;
 
@@ -838,8 +834,6 @@
 					      server);
 	if (priv->loop)
 		g_main_loop_quit (priv->loop);
-
-	g_object_unref (server);
 }
 
 /**



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