Memory allocating with new[] should be freed with delete[]

Candidate for the lamest first bugfix award.