[osg-users] How can I delete skybox from the memory totally

Jannik Heller scrawl at baseoftrash.de
Sat Jul 25 06:43:37 PDT 2015


> If I use m_SkyNode.release(), the memory increases again and again. 
> 


The release() function unassigns the pointer, but without freeing it (see the function documentation). What you want instead is


Code:

m_SkyNode = NULL;




You seem to be fairly confused about the concept of shared pointers, so perhaps you should read up on that concept before diving into using them with the OSG.
> 
[/code]

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








More information about the osg-users mailing list