1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Free now uninitialized std::map in CPlayerInterface::~CPlayerInterface.

This commit is contained in:
Frank Zago 2009-10-31 16:43:12 +00:00
parent fe80e8b553
commit 7a6f1a383a

View File

@ -111,8 +111,11 @@ CPlayerInterface::~CPlayerInterface()
for(std::map<int,SDL_Surface*>::iterator i=graphics->heroWins.begin(); i!= graphics->heroWins.end(); i++)
SDL_FreeSurface(i->second);
graphics->heroWins.clear();
for(std::map<int,SDL_Surface*>::iterator i=graphics->townWins.begin(); i!= graphics->townWins.end(); i++)
SDL_FreeSurface(i->second);
graphics->townWins.clear();
}
void CPlayerInterface::init(ICallback * CB)
{