[osg-submissions] osgPlugins/shp
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Wed May 7 07:35:49 PDT 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgPlugins_shp_patch.zip
Type: application/x-zip-compressed
Size: 5004 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080507/13ef3958/attachment.bin>
More information about the osg-submissions
mailing list