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
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to