Fix memory leak in Parser after r22314.
R=marja@chromium.org Review URL: https://codereview.chromium.org/383713002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22317 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
3994880715
commit
4057ed91af
@ -561,6 +561,8 @@ class Parser : public ParserBase<ParserTraits> {
|
||||
~Parser() {
|
||||
delete reusable_preparser_;
|
||||
reusable_preparser_ = NULL;
|
||||
delete cached_parse_data_;
|
||||
cached_parse_data_ = NULL;
|
||||
}
|
||||
|
||||
// Parses the source code represented by the compilation info and sets its
|
||||
|
Loading…
Reference in New Issue
Block a user