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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user