I meant the whole code for NullObject, and you should use code blocks to avoid smilies and to preserve formatting.
Have you tried making the destructor private, if you don't want people to be able to delete it?
Then to delete the object people will be forced to call the appropriate function.