Index: Source/core/html/shadow/TextControlInnerElements.cpp |
diff --git a/Source/core/html/shadow/TextControlInnerElements.cpp b/Source/core/html/shadow/TextControlInnerElements.cpp |
index fded6f732ec73fb64cc34f7af3c4bb149bdccda0..3c6ea84e36ea8b4ea7d789f2eae47b76d4477634 100644 |
--- a/Source/core/html/shadow/TextControlInnerElements.cpp |
+++ b/Source/core/html/shadow/TextControlInnerElements.cpp |
@@ -264,12 +264,16 @@ inline InputFieldSpeechButtonElement::InputFieldSpeechButtonElement(Document& do |
InputFieldSpeechButtonElement::~InputFieldSpeechButtonElement() |
{ |
+#if !ENABLE(OILPAN) |
+ // With Oilpan, this cleanup is handled with weak processing of the |
+ // SpeechInputs. |
SpeechInput* speech = speechInput(); |
if (speech && m_listenerId) { // Could be null when page is unloading. |
if (m_state != Idle) |
speech->cancelRecognition(m_listenerId); |
speech->unregisterListener(m_listenerId); |
} |
+#endif |
} |
PassRefPtr<InputFieldSpeechButtonElement> InputFieldSpeechButtonElement::create(Document& document) |