This package is a very simple leak checker facility developed as part
of the framework to provide the first level of defense against memory
leaks. It can be used to allow basic leak checking to be built into
package validation. It is not a substitute for a full function leak
checker such as Valgrind.
To use LeakChecker for a class, the cpp macro LEA_CTOR must
be inserted into each of its constructors and LEA_DTOR into
To get leak statistics the
LeaLeakChecker singleton has to be accessed:-
after which the methods GetNumCreated and
GetNumActive can be used.
LeaLeakChecker* lea = LeaLeakChecker::Instance();
Last Modified: $Date: 2004/05/27 17:50:37 $