I've read some C++ books explaining how it's important to delete new-allocated memory. I have learnt some strategies like encapsuling the created object inside another object where its destructor will be called, etc, etc. However, if we have a singleton used during all the life of a program.. is it "really" important to delete it?
As I said, I have played the "I'm a good software engineer and I always delete my stuff" game. But, someone whom I really respect told me it was useless to delete such an object because, when the program close, the OS will just override that memory part, and, who cares if there are old trash in that part?
What do you guys think :)
Thanks
(Sorry for the english mistakes.. this is not my native language :])