Fixed all memory leaks in test/TestInterfaceSpeed by fixing common/PointList.h
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user