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