Should I take care of the deletion of static global g_ptr or just let the system does the deletion? (HereDevice is a custom class)
g_ptr
Device
static Device *g_ptr; void init() { ... g_ptr = new Device[num_devices]; ... }
Aucun commentaire:
Enregistrer un commentaire