mirror of
https://github.com/edubart/otclient.git
synced 2025-12-17 06:07:11 +01:00
Fix memory leaks
* Fix recursive reference memory leak in UIWidget * Make Event/ScheduledEvent memory-leak safe * Fix exit crashs by freeing graphics resources before destroying GL context * Add many asserts to avoid any leak regression
This commit is contained in:
@@ -57,6 +57,11 @@ bool ConfigManager::save()
|
||||
return m_confsDoc->save(m_fileName);
|
||||
}
|
||||
|
||||
void ConfigManager::clear()
|
||||
{
|
||||
m_confsDoc->clear();
|
||||
}
|
||||
|
||||
void ConfigManager::set(const std::string& key, const std::string& value)
|
||||
{
|
||||
if(key == "") {
|
||||
|
||||
Reference in New Issue
Block a user