In C++, delete automatically tests for null.