Index: trunk/Source/core/html/track/TextTrackList.cpp |
=================================================================== |
--- trunk/Source/core/html/track/TextTrackList.cpp (revision 167841) |
+++ trunk/Source/core/html/track/TextTrackList.cpp (working copy) |
@@ -258,6 +258,14 @@ |
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; |