Hi All,
testing my code I realized the following code generates memory leaks.


Code:

osgWidget::Canvas w("test");
w.attachMoveCallback();
BOOST_CHECK_EQUAL(true, false);




If I remove the attachMoveCallback() line I don't have leaks.

Lookig at OSG code it seems the callback object is insert into a:


Code:
typedef std::list< osg::observer_ptr< Callback > > CallbackList;



So, can you explain me the leak please?
Moreover I can't find a way to clean the _callbacks list. Is there any? Should 
I do it before che Canvas object goes out of scope?

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44345#44345





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to