Hi all!!<div><br></div><div>I am currently using geos 3.2.0 in an implementation of mine. The classes I am mainly using are Geometry, WKTReader and WKBWriter.  </div><div><br></div><div>However, after examining my code with valgrind, it seems that I am experiencing memory leaks from the two WKT classes. </div>


<div>The block of code that contains those is the following:</div><div><br></div><div>WKTReader* reader;</div><div>WKBWriter* writer;</div><div><div>for (unsigned i = 1; i &lt;= 1000000000; i++) {</div><div>                //</div>


<div>                //create the wkt geometry...</div><div>                //</div><div>
<br></div><div>                string wkt = sObj.str();</div><div><span style="white-space:pre-wrap">                </span>Geometry* geom = (*reader).read(wkt);</div><div>                (*writer).writeHEX(*geom,geo_values);</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>//reader-&gt;~WKTReader();</div><div><span style="white-space:pre-wrap">                </span>//(*geom).~Geometry();</div>
<div><span style="white-space:pre-wrap">                </span>//free(geom);</div><div><span style="white-space:pre-wrap">                </span>//delete reader;</div><div>}</div><div><br></div><div>The lines commented at the end of the block are my attempts to perform garbage collection manually.</div>


<div>So, my question is the following: Is there a specific way to destroy the Geometry/WKTReader/WKBWriter?? </div><div>Is it possible to avoid the leaks I am experiencing?</div><div><br></div><div><br></div><div>Thanks a lot,</div>


<div>Manos</div><div><br></div>-- <br>===================================================<br>
Manos Karpathiotakis<br>
National &amp; Kapodistrian University of Athens<br>
Department of Informatics &amp; Telecommunications, Office B25<br>
Management of Data &amp; Information Knowledge Group<br>
Panepistimioupolis, Ilissia<br>
GR-15784 Athens, Greece<br>
Tel: +30.210.727.5159<br>
Fax: +30.210.727.5214<br>
e-mail: <a href="mailto:mk@di.uoa.gr" target="_blank">mk@di.uoa.gr</a><br>
===================================================<font size="3"><br></font><div style="display:inline"></div><div style="display:inline"></div><br>
</div>