Fix missing break statement (CID #1108253)
Use delete[] on array (CID #701816)