Hi JS,

I've just reviewed your fix, and rather go with converting the
ref_ptr<Camera> to Camera*, I've opted for using observer_ptr<Camera>
as this will avoid the possibility of dangling pointers.

I've also changed DebugShadowMap to use observer_ptr<> rather than
Camera* for a viewer camera that it was keeping a reference to.  I
didn't spot any other instances of this in the osgShadow, but perhaps
there are others lurking.

I've checked these changes in.  Could you do an svn update and double
check that this memory leak is now fixed.

Cheers,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to