Commit 4057ed91 authored by yangguo@chromium.org's avatar yangguo@chromium.org

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
parent 39948807
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment