bool LeakTest(void)
{
bool bLeakFound = false;
AppWatchMan myAppWatchMan;
bLeakFound = myAppWatchMan.DoRounds("Before Test, ",
AWM::BEGIN_LEAK_TEST);
IntroduceLeak(); // Same as before
bLeakFound = myAppWatchMan.DoRounds("After Test, ",
AWM::END_LEAK_TEST);
return bLeakFound;
}
End of Listing