Hi Robert

That will be fine!

Thanks,

Wang Rui


2010/11/9 Robert Osfield <[email protected]>:
> Since posting my previous email I've worked out that the
> GifImageStream usage is what the code is meant to clean up for.  I've
> added a bit in the comment about the GifImageStream, and changed the
> ordering of the if() statement so it's safe when obj is NULL as in
> your version a potentially NULL pointer would have be dereferenced
> first.  My version is:
>
>    // Delete the last allocated buffer to avoid memory leaks if we
> using GifImageStream
>    if ( obj && *obj )
>        delete [] buffer;
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to