OSG uses smart pointers to manage memory (and release it if the last pointer is destroyed). The handler created with new in your cited code is stored in a smart pointer variable (see Notify.cpp) osg::ref_ptr<osg::NotifyHandler> _handler; (if the cast is a NotifyStreamBuffer). So I guess a memory leak could occur, if a StreamBuffer different than NotifyStreamBuffer is used.
------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50090#50090 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

