Fix memory leaks: delete font in main and GUIChatConsole

This commit is contained in:
PilzAdam 2013-05-10 21:54:50 +02:00
parent 782d06be46
commit e5781b5e34
2 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,7 @@ GUIChatConsole::GUIChatConsole(
GUIChatConsole::~GUIChatConsole()
{
delete m_font;
}
void GUIChatConsole::openConsole(f32 height)

View File

@ -2063,6 +2063,8 @@ int main(int argc, char *argv[])
*/
device->drop();
delete font;
#endif // !SERVER
// Update configuration file