From: PilzAdam Date: Thu, 16 May 2013 00:19:32 +0000 (+0200) Subject: Dont drop fonts with ENABLE_FREETYPE=0 X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=587e7b299b1d39bc5139a3678cecce0f91381605;p=zefram%2Fminetest%2Fminetest_engine.git Dont drop fonts with ENABLE_FREETYPE=0 --- diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index f31e599d..3dfd0090 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) diff --git a/src/main.cpp b/src/main.cpp index 7f9ec1ac..d28ba9b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2145,7 +2145,9 @@ int main(int argc, char *argv[]) */ device->drop(); - delete font; +#if USE_FREETYPE + font->drop(); +#endif #endif // !SERVER