Fix memory leak caused by NDSWaveArch with no samples.