Hi, In the excellent Beginners Guide, there is this code snippet (page 64):
Code: osg::ref_ptr < osg::ShapeDrawable > shape1 = new osg::ShapeDrawable; osg::ref_ptr < osg::Geode > root = new osg::Geode; root->addDrawable( shape1.get() ); However, I would think the last line should be Code: root->addDrawable( shape1 ); to properly manage the memory. ?? Thank you! Cheers, Norm PS I had to put spaces around the angle brackets. Otherwise, they would not appear in the post. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60417#60417 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

