KindDragon/vld

Leaks reported in STL containers like vectors, map

sparkskapil opened this issue · 1 comments

When using VLD with my existing codebase and Microsoft CPP test framework I am getting leaks in xmemory, xtree which are used in vector and map.
As these are expected to get deleted when they get out of scope.

I guess this could be because VLD exits before vectors and maps go out of scope.

The issue was missing virtual destructor in some polymorphic classes. Which resulted in incomplete deletion of objects and hence leaks in vectors and maps.