mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 15:42:24 +01:00
Fix memory leaks: delete font in main and GUIChatConsole
This commit is contained in:
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
Block a user