- some more memory cleanup

This commit is contained in:
Mark Vejvoda
2011-02-12 09:08:50 +00:00
parent c1ee5df801
commit 7dcb12ff60
4 changed files with 8 additions and 3 deletions

View File

@@ -135,9 +135,6 @@ public:
virtual T* read(ifstream& file, const string& path, T* former) const = 0;
virtual ~FileReader() {
/*for (typename vector<FileReader<T> const * >::const_iterator i = fileReaders.begin(); i != fileReaders.end(); ++i) {
delete const_cast<FileReader<T>* >(*i); //Segfault
}*/
}; //Well ... these objects aren't supposed to be destroyed
};