Fixed mismatched new and delete in BussIK VectorRn and MatrixRmn

This commit is contained in:
Ian Wilkes
2016-09-28 13:55:16 -07:00
parent cf046093ab
commit a2baf446ea
2 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ inline VectorRn::VectorRn( long initLength )
inline VectorRn::~VectorRn()
{
delete x;
delete[] x;
}
// Resize.
@@ -113,7 +113,7 @@ inline void VectorRn::SetLength( long newLength )
{
assert ( newLength>0 );
if ( newLength>AllocLength ) {
delete x;
delete[] x;
AllocLength = Max( newLength, AllocLength<<1 );
x = new double[AllocLength];
}