Fix incorrect delete[] statement