mirror of https://github.com/odrling/Aegisub
Eliminate memory leak in menu code
Originally committed to SVN as r5476.
This commit is contained in:
parent
5c7a848f21
commit
26695a8cc8
|
@ -55,11 +55,8 @@ Menu::Menu() {
|
||||||
|
|
||||||
for (json::Object::const_iterator index(object.Begin()); index != object.End(); index++) {
|
for (json::Object::const_iterator index(object.Begin()); index != object.End(); index++) {
|
||||||
const json::Object::Member& member = *index;
|
const json::Object::Member& member = *index;
|
||||||
// const json::UnknownElement& element = member.element;
|
|
||||||
|
|
||||||
const json::Array& array = member.element;
|
const json::Array& array = member.element;
|
||||||
BuildMenu(member.name, array);
|
delete BuildMenu(member.name, array);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue