Thanks for the replies, Yeah its all fixed. The AnimFile* wasnt really necessary as value worked just fine. That and the use of the string class solved problems.
ohh and yes just irtating through the map deleting all dynamic memory then callng clear() worked.