Hi On 12/13/06, xiaoshuxing <[EMAIL PROTECTED]> wrote:
Hello, everyone: Osg::ref_ptr is used automatically manage the memory allocation, but it only release the memory when the point is out of scope What should I do if I want to release the memory the pointer is pointing to explicitly?
Just write my_ptr = NULL, this will unref() the root object and delete it (as long as it's not referenced by any other osg::ref_ptr). This will trigger the recursive unref() chain that you tried to do manually. Regards -- Thibault
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
