Index: Source/bindings/core/v8/ScriptStreamerTest.cpp |
diff --git a/Source/bindings/core/v8/ScriptStreamerTest.cpp b/Source/bindings/core/v8/ScriptStreamerTest.cpp |
index 53f26fd086269b975f36d984d492061cddb9ad60..dd7c4cae7de506f8bb1fc047c58a6a8e535ec4e6 100644 |
--- a/Source/bindings/core/v8/ScriptStreamerTest.cpp |
+++ b/Source/bindings/core/v8/ScriptStreamerTest.cpp |
@@ -67,7 +67,7 @@ public: |
: m_scope(v8::Isolate::GetCurrent()) |
, m_settings(Settings::create()) |
, m_resourceRequest("http://www.streaming-test.com/") |
- , m_resource(new ScriptResource(m_resourceRequest, "UTF-8")) |
+ , m_resource(ScriptResource::create(m_resourceRequest, "UTF-8").leakPtr()) |
haraken
2015/01/08 01:17:21
Who deletes the leaked m_resource?
sof
2015/01/08 06:17:14
See comment on the next line.
haraken
2015/01/08 06:18:00
ah, ok.
|
, m_pendingScript(PendingScriptWrapper::create(0, m_resource)) // Takes ownership of m_resource. |
{ |
m_settings->setV8ScriptStreamingEnabled(true); |