[Insight-users] itk::GDCMSeriesFileNames memory leaks with MFC

Lyubomir G. Zagorchev Lyubomir.G.Zagorchev at Dartmouth.edu
Thu Feb 12 13:45:08 EST 2009


Hi Mathieu,

I tracked down the memory leak to an old issue which supposedly was resolved earlier: 

0007004: ITK Memory leak in gdcm::gdcmdocument.h , function ParseDES, invoke RemoveEntry, and the solved method 

Somehow the old code that was causing the leaks (and still is!!) has found 
its way back into CVS.  Please verify that and let me know. 

Adding  "delete entryToRemove;" to "bool ElementSet::RemoveEntry( DocEntry *entryToRemove)"
as reported earlier solves the memory leaks, which by the way are only noticeable if you use MFC...

Best,
Lyubomir



More information about the Insight-users mailing list