delete move array in destructor