From 587e7b299b1d39bc5139a3678cecce0f91381605 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Thu, 16 May 2013 02:19:32 +0200 Subject: Dont drop fonts with ENABLE_FREETYPE=0 --- src/guiChatConsole.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/guiChatConsole.cpp') diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index f31e599dc..3dfd0090a 100644 --- a/src/guiChatConsole.cpp +++ b/src/guiChatConsole.cpp @@ -121,7 +121,9 @@ GUIChatConsole::GUIChatConsole( GUIChatConsole::~GUIChatConsole() { - delete m_font; +#if USE_FREETYPE + m_font->drop(); +#endif } void GUIChatConsole::openConsole(f32 height) -- cgit v1.2.3