How do you check whether or not a pointer has been used with 'new' before calling delete[] on it?

Cheers.