You are viewing a single comment's thread. Return to all comments →
Truly elegant. Shouldn't we free A or set it to NULL as well?
You have to free A (delete A), if only set it to NULL you'll lose the block of memory and cause a leak memory.
Sorry my english.