Don't allocate with 'new' if you are going to use delete[].