cleaning up text surfaces upon Engine deletion
git-svn-id: svn://anubis/anaglym/trunk@158 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
01c65d68dd
commit
f7f6c83795
@ -128,6 +128,12 @@ Engine::~Engine()
|
|||||||
{
|
{
|
||||||
delete it->second;
|
delete it->second;
|
||||||
}
|
}
|
||||||
|
for (std::map<int, SDL_Surface *>::iterator it = m_texts.begin();
|
||||||
|
it != m_texts.end();
|
||||||
|
it++)
|
||||||
|
{
|
||||||
|
SDL_FreeSurface(it->second);
|
||||||
|
}
|
||||||
delete m_fileLoader;
|
delete m_fileLoader;
|
||||||
if (m_font != NULL)
|
if (m_font != NULL)
|
||||||
TTF_CloseFont(m_font);
|
TTF_CloseFont(m_font);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user