interesting for :)
it's better to do just 
delete it->second;

and after for() construction call outputFiles.clear();