Index: src/background-parsing-task.h |
diff --git a/src/background-parsing-task.h b/src/background-parsing-task.h |
index bd96ee1f857b46f5b736930b8a9d683342f3a998..54ea6d97a951edf9b18fb61b6d20c1b68779afe0 100644 |
--- a/src/background-parsing-task.h |
+++ b/src/background-parsing-task.h |
@@ -26,6 +26,14 @@ struct StreamedSource { |
ScriptCompiler::StreamedSource::Encoding encoding) |
: source_stream(source_stream), encoding(encoding) {} |
+ void Release() { |
+ parser.reset(); |
+ info.reset(); |
+ zone.reset(); |
+ cached_data.reset(); |
+ source_stream.reset(); |
+ } |
+ |
// Internal implementation of v8::ScriptCompiler::StreamedSource. |
std::unique_ptr<ScriptCompiler::ExternalSourceStream> source_stream; |
ScriptCompiler::StreamedSource::Encoding encoding; |