Index: Source/core/html/track/TextTrackList.cpp |
diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp |
index ba8ca1aea8f759f1a53575c5f100be8f5627e0d7..588e3768c9aa5368e9406d72f08b47160df738bf 100644 |
--- a/Source/core/html/track/TextTrackList.cpp |
+++ b/Source/core/html/track/TextTrackList.cpp |
@@ -258,6 +258,14 @@ ExecutionContext* TextTrackList::executionContext() const |
return m_owner->executionContext(); |
} |
+void TextTrackList::clearOwnerAndClients() |
+{ |
+ m_owner = 0; |
+ |
+ for (unsigned i = 0; i < length(); ++i) |
+ item(i)->clearClient(); |
+} |
+ |
void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TextTrack> track) |
{ |
TrackEventInit initializer; |