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:
yangguo@chromium.org 2014-07-10 11:34:14 +00:00
parent 3994880715
commit 4057ed91af

View File

@ -561,6 +561,8 @@ class Parser : public ParserBase<ParserTraits> {
~Parser() { ~Parser() {
delete reusable_preparser_; delete reusable_preparser_;
reusable_preparser_ = NULL; reusable_preparser_ = NULL;
delete cached_parse_data_;
cached_parse_data_ = NULL;
} }
// Parses the source code represented by the compilation info and sets its // Parses the source code represented by the compilation info and sets its