[Dcmlib] Re: ptotential memory leak without virtual destructor.

Dennis Hu denis_hudr at sina.com
Sun Nov 14 07:16:54 CET 2004


Hi, Mathieu,

>From my point of view, gdcm::ElementSet is the base class for gdcm::Document.So it needs virtual destructor. i will do some tests with this.

No special tool was used. just use some tips from http://www.devx.com/DevX/Tip/20465
Hope you can find and fix memory leaks in gdcm. 

In gdcmFile.cxx, pixelConverter is created by new without delete to clean up.
the codes like following:

PixelConverter = new PixelConvert;  //LEAK !

 is it  intentional or faces some challenging?

Dennis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20041113/9ace2997/attachment.html>


More information about the Dcmlib mailing list