Hi Mathias, On Fri, May 7, 2010 at 3:57 PM, Mathias Fiedler <[email protected]> wrote: > Does the SceneCache really need to be a vector of observer_ptr, or should it > be a vector of plain pointer?
A plan C pointer wouldn't track destruction of the subgraph that it's referencing so would end up with a dangling pointer. Changing to a C pointer wouldn't fix even the "leak" though, not that it's a real leak anyway, the std::vector<> will get cleaned up on exit. > Although this is not a big issue (i don't want to create/destroy Scene > objects frequently) it would prevent me from using the Viewer in a unit test > with heap watch. Perhaps there is a way of disabling the false positives with you heap tool. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

