Array inside a class deallocation

Hi,
I have a class like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
class compConfigList
{
public:
	compConfigList *prevList;
	compConfig *CompConfig[CONFIGNUM];
	compConfigList *nextList;
	// Constructors
	compConfigList();
	// Copy constructor
	compConfigList(const compConfigList & copyList);
	//Destructor
	~compConfigList();
};


So in this class in the destructor I delete each object pointed in the CompConfig array. Now my question is do I have to also delete this array like this:

 
delete [] &CompConfig;


or would the space allocated to this array be automatically deleted once the class instance is deleted?
No, you do not need to do that.

As a general rule, if you ever write a line of code like

 
delete &<something here>;


It is more than likely wrong.
Thanks.
Topic archived. No new replies allowed.