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

diff --git a/toolkit/components/places/src/nsNavHistory.cpp b/toolkit/components/places/src/nsNavHistory.cpp
--- a/toolkit/components/places/src/nsNavHistory.cpp
+++ b/toolkit/components/places/src/nsNavHistory.cpp
@@ -315,6 +315,8 @@ nsNavHistory::GetSingleton()
     if (NS_FAILED(gHistoryService->Init()))
       NS_RELEASE(gHistoryService);
   }
+
+  NS_RootUntilShutdown(gHistoryService);
 
   return gHistoryService;
 }