root-dirservice
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 107 9905102122bc97034c8f5b2106e9b62d3f00adca
permissions -rw-r--r--
State as of now

Root the directory service... I'm not sure how this got lost in the shuffle.

diff --git a/xpcom/io/nsDirectoryService.cpp b/xpcom/io/nsDirectoryService.cpp
--- a/xpcom/io/nsDirectoryService.cpp
+++ b/xpcom/io/nsDirectoryService.cpp
@@ -527,6 +527,9 @@ nsDirectoryService::RealInit()
         return rv;
 
     self.swap(gService);
+
+    NS_RootUntilShutdown(gService);
+
     return NS_OK;
 }