dbus/bus bus.c,1.63,1.64

Colin Walters walters at freedesktop.org
Wed Jun 15 23:05:11 PDT 2005


Update of /cvs/dbus/dbus/bus
In directory gabe:/tmp/cvs-serv11005/bus

Modified Files:
	bus.c 
Log Message:
2005-06-16  Colin Walters  <walters at verbum.org>

	* bus/bus.c (bus_context_new): Set parser to NULL
	after we unref it (Patch from Chris Boscolo, #2174).


Index: bus.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/bus.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- bus.c	15 Jun 2005 02:31:38 -0000	1.63
+++ bus.c	16 Jun 2005 06:05:09 -0000	1.64
@@ -732,7 +732,10 @@
     }
 
   if (parser != NULL)
-    bus_config_parser_unref (parser);
+    {
+      bus_config_parser_unref (parser);
+      parser = NULL;
+    }
   
   /* Here we change our credentials if required,
    * as soon as we've set up our sockets and pidfile



More information about the dbus-commit mailing list