Hi Wang Rui,

I've just reviewed your change and am a bit perplexed why the if
statement. Your change was to add:

    // Delete the last allocated buffer to avoid memory leaks
    if ( *obj && obj )
        delete [] buffer;


Why wouldn't :

  delete [] buffer;

Be sufficient?

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

Reply via email to