Skip to content

Commit

Permalink
Fix memory leak defect in scoreman
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Mar 30, 2018
1 parent b12757b commit dcc9295
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ XNode * ScoreManager::CreateNode(const string& profileID) const {
auto node = ch->second.CreateNode(ch->first);
if (!node->ChildrenEmpty())
o->AppendChild(node);
else
delete node;
}

return o;
Expand Down

0 comments on commit dcc9295

Please sign in to comment.