From c7821ddfe3651dd9688b877333e248e904b2d3ba Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 25 Jul 2007 10:12:45 +0000 Subject: [PATCH] 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. " --- src/osgPlugins/dae/daeRMaterials.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/dae/daeRMaterials.cpp b/src/osgPlugins/dae/daeRMaterials.cpp index 8f7acf52b..a333a06f4 100644 --- a/src/osgPlugins/dae/daeRMaterials.cpp +++ b/src/osgPlugins/dae/daeRMaterials.cpp @@ -516,9 +516,12 @@ osg::StateAttribute *daeReader::processTexture( domCommon_color_or_texture_type_ img = osgDB::readImageFile( filename ); + osg::notify(osg::INFO)<<" processTexture(..) - readImage("<