mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
CMap: fix objects memory leak on exit
This commit is contained in:
parent
bf6ad4e783
commit
ec22da4412
@ -242,6 +242,9 @@ CMap::~CMap()
|
||||
delete [] terrain;
|
||||
delete [] guardingCreaturePositions;
|
||||
}
|
||||
|
||||
for(auto obj : objects)
|
||||
obj.dellNull();
|
||||
}
|
||||
|
||||
void CMap::removeBlockVisTiles(CGObjectInstance * obj, bool total)
|
||||
|
Loading…
Reference in New Issue
Block a user