According to Dom Lachowicz <[EMAIL PROTECTED]>:
> 
> free() isn't guaranteed to work with NULL, and I'd rather not try to delete 
> (or delete[]) anything that is null. If you'd like to give this a try, in 

delete works with NULL pointers and does nothing. But it is best to check
the case in case of a broken library that may generate hard to trackdown
bugs.
Ref: C++ Programming Language, 3rd Edition
Bjarne Stroustrup
Page 128
"Applying delete to zero has no effect".


Hub

Reply via email to