Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 5e2b49ed4ad94f60b53136cab1ed99bba2dc580d..2e944b02c0b224c0c0540378e1f36b121a1d65d7 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -256,6 +256,10 @@ static void frameContentAsPlainText(size_t maxChars, LocalFrame* frame, StringBu |
// Select the document body. |
RefPtrWillBeRawPtr<Range> range(document->createRange()); |
+#if ENABLE(OILPAN) |
+ ScopedDisposal<Range> disposeScope(range); |
+#endif |
+ |
TrackExceptionState exceptionState; |
range->selectNodeContents(document->body(), exceptionState); |