Removed the closeLibraries call from the registry singleton desctuction.

This commit is contained in:
Robert Osfield 2005-12-05 10:23:37 +00:00
parent edf4598838
commit 197b68ecb8

View File

@ -119,13 +119,12 @@ void PrintFilePathList(std::ostream& stream,const FilePathList& filepath)
Registry* Registry::instance(bool erase)
{
static ref_ptr<Registry> s_nodeFactory = new Registry;
static ref_ptr<Registry> 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
}