[testdelete1\testdelete1.cpp:6]: Redundant condition. It is allowed to deallocate a NULL pointer, so it is safe to remove the 'if(..)'.