Memory leak fixed

This commit is contained in:
Nekotekina 2015-12-06 20:18:15 +03:00
parent 8e4ad3dfcb
commit 717d99795c
2 changed files with 2 additions and 17 deletions

View file

@ -163,16 +163,3 @@ std::string config_context_t::to_string() const
return result.str();
}
void config_context_t::add_group(const std::string& name)
{
new group(this, name);
}
config_context_t::group& config_context_t::get_group(const std::string& name)
{
if (!m_groups[name])
add_group(name);
return *m_groups[name];
}