[osg-users] osgWidget memory leak
lw.ren at hotmail.com
Fri Mar 27 02:16:19 PDT 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users