Fixed potential memory leak by introducing ref counting.
Fixed potential memory leak by introducing ref counting.

jtorresfabra/osg,scrawl/osg,jtorresfabra/osg,tomasthoresen/osg,jtorresfabra/osg,marchelbling/osg,tomasthoresen/osg,openscenegraph/osg,openscenegraph/osg,marchelbling/osg,jtorresfabra/osg,scrawl/osg,scrawl/osg,scrawl/osg,openscenegraph/osg,marchelbling/osg,marchelbling/osg,openscenegraph/osg,tomasthoresen/osg,tomasthoresen/osg