parent
5c5b0f97b7
commit
a923d1f89b
|
@ -198,8 +198,8 @@ Scope::Scope(Parser& parser,bool topLevel)
|
|||
elements.insert(ElementMap::value_type(str, element));
|
||||
return;
|
||||
}
|
||||
ParseError("unexpected end of file",parser.LastToken());
|
||||
delete element;
|
||||
ParseError("unexpected end of file",parser.LastToken());
|
||||
} else {
|
||||
elements.insert(ElementMap::value_type(str, element));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue