Skip to content

Commit 587e7b2

Browse files
committedMay 16, 2013
Dont drop fonts with ENABLE_FREETYPE=0
1 parent d5ca3b7 commit 587e7b2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/guiChatConsole.cpp

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

122122
GUIChatConsole::~GUIChatConsole()
123123
{
124-
delete m_font;
124+
#if USE_FREETYPE
125+
m_font->drop();
126+
#endif
125127
}
126128

127129
void GUIChatConsole::openConsole(f32 height)

‎src/main.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,9 @@ int main(int argc, char *argv[])
21452145
*/
21462146
device->drop();
21472147

2148-
delete font;
2148+
#if USE_FREETYPE
2149+
font->drop();
2150+
#endif
21492151

21502152
#endif // !SERVER
21512153

0 commit comments

Comments
 (0)
Please sign in to comment.