Skip to content

Commit e5781b5

Browse files
committedMay 10, 2013
Fix memory leaks: delete font in main and GUIChatConsole
1 parent 782d06b commit e5781b5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎src/guiChatConsole.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ GUIChatConsole::GUIChatConsole(
121121

122122
GUIChatConsole::~GUIChatConsole()
123123
{
124+
delete m_font;
124125
}
125126

126127
void GUIChatConsole::openConsole(f32 height)

‎src/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2063,6 +2063,8 @@ int main(int argc, char *argv[])
20632063
*/
20642064
device->drop();
20652065

2066+
delete font;
2067+
20662068
#endif // !SERVER
20672069

20682070
// Update configuration file

0 commit comments

Comments
 (0)
Please sign in to comment.