Does it not matter ( obviously other than the fact the member function will have to be called )? Does it depend on the situation? Should the cleanUp function be called the destructor? Thanks for any help in advance and I hope this isn't an absolute noob question.
Assuming that the dynamically allocated memory needs to remain allocated for the lifetime of the object, it should be freed in the destructor, that's what destructors are for.
X Abstract X wrote:Assuming that the dynamically allocated memory needs to remain allocated for the lifetime of the object, it should be freed in the destructor, that's what destructors are for.
Yeah thats what I thought but I wasn't sure, thanks.