mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix memory leaks: delete font in main and GUIChatConsole
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user