Fix mismatched delete / delete[].