From: PilzAdam Date: Fri, 10 May 2013 19:54:50 +0000 (+0200) Subject: Fix memory leaks: delete font in main and GUIChatConsole X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e5781b5e34a7f867c8dc7ebc1cbb6e81efaa9b86;p=zefram%2Fminetest%2Fminetest_engine.git Fix memory leaks: delete font in main and GUIChatConsole --- diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index ec23648f..f31e599d 100644 --- a/src/guiChatConsole.cpp +++ b/src/guiChatConsole.cpp @@ -121,6 +121,7 @@ GUIChatConsole::GUIChatConsole( GUIChatConsole::~GUIChatConsole() { + delete m_font; } void GUIChatConsole::openConsole(f32 height) diff --git a/src/main.cpp b/src/main.cpp index 94382ec6..e2ea1929 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2063,6 +2063,8 @@ int main(int argc, char *argv[]) */ device->drop(); + delete font; + #endif // !SERVER // Update configuration file