deleting aggregates data on destructor

In my code I have a class that contains a list and an array of pointers to something.
When I try, in the destructor, to delete the data that is pointed to by the pointers of both the list and array the application gives me an error. Because it tries to access memory that doesn't owns.

What can I do to solve this problem?
Well the obvious answer is don't free the memory, but in general the question of who owns the memory referenced by a pointer can only be answered in the context your particular usage. If you want an opinion, post your code.
Topic archived. No new replies allowed.