forked from mia/Aegisub
Eliminate memory leak in menu code
Originally committed to SVN as r5476.
This commit is contained in:
parent
5c7a848f21
commit
26695a8cc8
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue