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:
parent
7f5aa1007f
commit
21f574f5ee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user