1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Less leaks.

This commit is contained in:
Michał W. Urbańczyk
2008-01-21 18:46:07 +00:00
parent 449e7b6773
commit 10e4e2937f
3 changed files with 9 additions and 2 deletions

View File

@@ -115,6 +115,12 @@ public:
CCastleInterface::CCastleInterface(const CGTownInstance * Town, bool Activate)
{
int t = 600;
while(t--)
{
CDefHandler* defik = CGI->spriteh->giveDef("ITMTL.DEF");
delete defik;
}
count=0;
town = Town;
townInt = CGI->bitmaph->loadBitmap("TOWNSCRN.bmp");