mardi 23 août 2016

When the dynamically created singleton object should be deleted?

When the dynamically created singleton object should be deleted ? Is it really needed to delete the object explicitly (from destructor) or the not deleted memory will be safely claimed by OS/System once program exits ? What are the consequences if it is not deleted ?

Aucun commentaire:

Enregistrer un commentaire