Eliminate memory leak in menu code

Originally committed to SVN as r5476.
This commit is contained in:
Thomas Goyne 2011-07-15 17:36:44 +00:00
parent 5c7a848f21
commit 26695a8cc8

View file

@ -55,11 +55,8 @@ Menu::Menu() {
for (json::Object::const_iterator index(object.Begin()); index != object.End(); index++) {
const json::Object::Member& member = *index;
// const json::UnknownElement& element = member.element;
const json::Array& array = member.element;
BuildMenu(member.name, array);
delete BuildMenu(member.name, array);
}
}