Fix memory leaks: delete font in main and GUIChatConsole
parent
782d06be46
commit
e5781b5e34
|
@ -121,6 +121,7 @@ GUIChatConsole::GUIChatConsole(
|
||||||
|
|
||||||
GUIChatConsole::~GUIChatConsole()
|
GUIChatConsole::~GUIChatConsole()
|
||||||
{
|
{
|
||||||
|
delete m_font;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIChatConsole::openConsole(f32 height)
|
void GUIChatConsole::openConsole(f32 height)
|
||||||
|
|
|
@ -2063,6 +2063,8 @@ int main(int argc, char *argv[])
|
||||||
*/
|
*/
|
||||||
device->drop();
|
device->drop();
|
||||||
|
|
||||||
|
delete font;
|
||||||
|
|
||||||
#endif // !SERVER
|
#endif // !SERVER
|
||||||
|
|
||||||
// Update configuration file
|
// Update configuration file
|
||||||
|
|
Loading…
Reference in New Issue