Futher updates to MemoryManager, fixed memory leak in osgconv.

This commit is contained in:
Robert Osfield
2002-03-27 16:31:25 +00:00
parent 77ae5ddcb6
commit 7e2c82f141
5 changed files with 1014 additions and 968 deletions

View File

@@ -206,12 +206,12 @@ int main( int argc, char **argv )
fileNames.pop_back();
}
osg::Node* root = osgDB::readNodeFiles(fileNames);
osg::ref_ptr<osg::Node> root = osgDB::readNodeFiles(fileNames);
if( do_convert )
root = oc.convert( root );
root = oc.convert( root.get() );
if (root)
if (root.valid())
{
osgDB::writeNodeFile(*root,fileNameOut);
osg::notify(osg::NOTICE)<<"Data written to '"<<fileNameOut<<"'."<< std::endl;