[osg-submissions] osgPlugins/shp
Robert Osfield
robert.osfield at gmail.com
Thu May 8 07:18:26 PDT 2008
Thanks Sebastian, fixes now merged and submitted to SVN.
On Wed, May 7, 2008 at 3:35 PM, Sebastian Messerschmidt
<sebastian.messerschmidt at gmx.de> wrote:
> Hi,
>
> attached you'll find a patch for the shp-plugin.
> I've spotted huge memory leaks int ShapeParser and fixed them.
> Also, there was a missing destructor (PolygonM) and a missing member
> initialization (PolygonZ)
> Would be nice if someone could test the changes.
>
> To release the memory just if no reading error happened (and therefore the
> arrays would be valid) I've added an macro to release and reset the pointers
> at once. I'm not using macros myself very often as I don't like them, but I
> think it doesn't hurt in this code.
>
>
>
> Best regards
> Sebastian
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
More information about the osg-submissions
mailing list