RTPDebug::~RTPDebug() { if (log) { if (first != NULL) DumpLeaks(); else { if (dbgfile) fprintf(dbgfile,"No memory leaks found\n"); } if (dbgfile) fclose(dbgfile); } }
MemoryTracker::~MemoryTracker() { DumpStats(); DumpLeaks(); }