[osg-users] osgWidget memory leak

renlw lw.ren at hotmail.com
Fri Mar 27 02:16:19 PDT 2009


Hi,
    I notice that calls like EventInterface::addCallback(new Callback(...)) would cause memory leak.
It use a list to manage the callback objects, and the list item is osg::observer_ptr<Callback>, but not something like osg::ref_ptr<Callback>. 
And observer_ptr doesn't do ref/unref to Reference objects like what ref_ptr does. 
So the callback objects can't be released automaticly.

-renliwei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090327/2bc8f4c7/attachment-0002.htm>


More information about the osg-users mailing list