1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

CMap: fix objects memory leak on exit

This commit is contained in:
Arseniy Shestakov
2016-08-19 16:56:26 +03:00
parent bf6ad4e783
commit ec22da4412

View File

@ -242,6 +242,9 @@ CMap::~CMap()
delete [] terrain; delete [] terrain;
delete [] guardingCreaturePositions; delete [] guardingCreaturePositions;
} }
for(auto obj : objects)
obj.dellNull();
} }
void CMap::removeBlockVisTiles(CGObjectInstance * obj, bool total) void CMap::removeBlockVisTiles(CGObjectInstance * obj, bool total)