summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guiChatConsole.cpp1
-rw-r--r--src/main.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp
index ec23648f8..f31e599dc 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 94382ec60..e2ea19295 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