Skip to content

Commit

Permalink
Fix memory leaks: delete font in main and GUIChatConsole
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed May 10, 2013
1 parent 782d06b commit e5781b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/guiChatConsole.cpp
Expand Up @@ -121,6 +121,7 @@ GUIChatConsole::GUIChatConsole(

GUIChatConsole::~GUIChatConsole()
{
delete m_font;
}

void GUIChatConsole::openConsole(f32 height)
Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -2063,6 +2063,8 @@ int main(int argc, char *argv[])
*/
device->drop();

delete font;

#endif // !SERVER

// Update configuration file
Expand Down

0 comments on commit e5781b5

Please sign in to comment.