From 197b68ecb8fc9d0f82976cfa333ec1daac9e2b51 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 5 Dec 2005 10:23:37 +0000 Subject: [PATCH] Removed the closeLibraries call from the registry singleton desctuction. --- src/osgDB/Registry.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index fb2bd5550..d3e3796b4 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -119,13 +119,12 @@ void PrintFilePathList(std::ostream& stream,const FilePathList& filepath) Registry* Registry::instance(bool erase) { - static ref_ptr s_nodeFactory = new Registry; + static ref_ptr s_registry = new Registry; if (erase) { - s_nodeFactory->closeAllLibraries(); - s_nodeFactory = 0; + s_registry = 0; } - return s_nodeFactory.get(); // will return NULL on erase + return s_registry.get(); // will return NULL on erase }