mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
DIRECTOR: LINGO: Fix ID list memory leaks
This commit is contained in:
parent
fa01b6d434
commit
53b9a14c29
@ -396,7 +396,7 @@ struct GlobalNode : StmtNode {
|
||||
|
||||
GlobalNode(IDList *namesIn) : StmtNode(kGlobalNode), names(namesIn) {}
|
||||
virtual ~GlobalNode() {
|
||||
delete names;
|
||||
deleteList(names);
|
||||
}
|
||||
virtual bool accept(NodeVisitor *visitor) {
|
||||
return visitor->visitGlobalNode(this);
|
||||
@ -410,7 +410,7 @@ struct PropertyNode : StmtNode {
|
||||
|
||||
PropertyNode(IDList *namesIn) : StmtNode(kPropertyNode), names(namesIn) {}
|
||||
virtual ~PropertyNode() {
|
||||
delete names;
|
||||
deleteList(names);
|
||||
}
|
||||
virtual bool accept(NodeVisitor *visitor) {
|
||||
return visitor->visitPropertyNode(this);
|
||||
@ -424,7 +424,7 @@ struct InstanceNode : StmtNode {
|
||||
|
||||
InstanceNode(IDList *namesIn) : StmtNode(kInstanceNode), names(namesIn) {}
|
||||
virtual ~InstanceNode() {
|
||||
delete names;
|
||||
deleteList(names);
|
||||
}
|
||||
virtual bool accept(NodeVisitor *visitor) {
|
||||
return visitor->visitInstanceNode(this);
|
||||
|
Loading…
Reference in New Issue
Block a user