Fix mismatched new[]/delete