example
the problem is that aObject doesn't get deleted.Code:aClass * aObject = new aClass; std::list<aClass> aClassList; aClassList.push_back(aObject); //do lots of stuff passing the list back and forth among functions aClassList.erase();
How do I solve this?
Thanks for any help.