summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-06-16 06:05:09 +0000
committerColin Walters <walters@verbum.org>2005-06-16 06:05:09 +0000
commitffbf479f9e31ba4d52c7fd6df728ea35216d3863 (patch)
tree82856b2f4a22280bf49ef66e26387fd7877d001a /bus
parent772c535d50080e0aa831d7db161d3ed36de6ed0d (diff)
2005-06-16 Colin Walters <walters@verbum.org>
* bus/bus.c (bus_context_new): Set parser to NULL after we unref it (Patch from Chris Boscolo, #2174).
Diffstat (limited to 'bus')
-rw-r--r--bus/bus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bus/bus.c b/bus/bus.c
index 6da13e4..de880cf 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -732,7 +732,10 @@ bus_context_new (const DBusString *config_file,
}
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