Memory leaks can be caused by incredibly innocent things, like throwing exceptions from constructors. Say new throws in the constructor: your object's destructor never gets called. Those member data which have destructors will get theirs called, though.
C++ is bad, sometimes.



LinkBack URL
About LinkBacks



