Fixed all memory leaks in test/TestInterfaceSpeed by fixing common/PointList.h

This commit is contained in:
James E McClure
2015-02-18 14:09:24 -05:00
parent b6d7f53a45
commit bbd611619a

View File

@@ -101,9 +101,9 @@ protected:
public:
virtual ~DTList() {
// --(*refCount);
// if (*refCount==0) {delete [] Data; delete refCount;}
// Data = 0; refCount = 0; length=0;
--(*refCount);
if (*refCount==0) {delete [] Data; delete refCount;}
Data = 0; refCount = 0; length=0;
}
DTList<T> &operator=(const DTList<T> &A) {