1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Added a destuctor to CISer to fix some memory leaks.

This commit is contained in:
Frank Zago 2009-10-24 15:54:08 +00:00
parent 7f5aa1007f
commit 21f574f5ee

View File

@ -444,6 +444,14 @@ public:
myVersion = version;
}
~CISer()
{
std::map<ui16,CBasicPointerLoader*>::iterator iter;
for(iter = loaders.begin(); iter != loaders.end(); iter++)
delete iter->second;
}
template<typename T> void registerType(const T * t=NULL)
{
ui16 ID = typeList.registerType(t);