We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd70f4f commit 81b9c02Copy full SHA for 81b9c02
src/guiChatConsole.cpp
@@ -99,7 +99,7 @@ GUIChatConsole::GUIChatConsole(
99
{
100
core::dimension2d<u32> dim = m_font->getDimension(L"M");
101
m_fontsize = v2u32(dim.Width, dim.Height);
102
- dstream << "Font size: " << m_fontsize.X << " " << m_fontsize.Y << std::endl;
+ m_font->grab();
103
}
104
m_fontsize.X = MYMAX(m_fontsize.X, 1);
105
m_fontsize.Y = MYMAX(m_fontsize.Y, 1);
@@ -109,7 +109,10 @@ GUIChatConsole::GUIChatConsole(
109
110
111
GUIChatConsole::~GUIChatConsole()
112
-{}
+{
113
+ if (m_font)
114
+ m_font->drop();
115
+}
116
117
void GUIChatConsole::openConsole(f32 height)
118
0 commit comments