mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +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()
|
||||
{
|
||||
delete m_font;
|
||||
}
|
||||
|
||||
void GUIChatConsole::openConsole(f32 height)
|
||||
|
@ -2063,6 +2063,8 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
device->drop();
|
||||
|
||||
delete font;
|
||||
|
||||
#endif // !SERVER
|
||||
|
||||
// Update configuration file
|
||||
|
Loading…
Reference in New Issue
Block a user