From Parag Chaudhur, "In daeRMaterials.cpp in the COLLADA plugin, in the processTexture function, Lines 519-522

of the source file:

The "delete [] path" appears before the "osg::notify", causing the data pointed to by
"filename" to be deleted before access causing an access violation.

...

I have put a comment on
line 521 where I have moved the "delete []path" below.
"
This commit is contained in:
Robert Osfield 2007-07-25 10:12:45 +00:00
parent 593dfe3193
commit c7821ddfe3

View File

@ -516,9 +516,12 @@ osg::StateAttribute *daeReader::processTexture( domCommon_color_or_texture_type_
img = osgDB::readImageFile( filename );
osg::notify(osg::INFO)<<" processTexture(..) - readImage("<<filename<<")"<<std::endl;
//Moved this below the osg::notify - Parag, 24/7/2007
delete [] path;
osg::notify(osg::INFO)<<" processTexture(..) - readImage("<<filename<<")"<<std::endl;
}
else
{