Some media tests are flaky.
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 00:42:51 +0000 (00:42 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 00:42:51 +0000 (00:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=155614

Reviewed by Eric Carlson.

* html/track/TextTrack.cpp:
(WebCore::TextTrack::~TextTrack):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@198361 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/track/TextTrack.cpp

index 7f5af07..4b72a3b 100644 (file)
@@ -1,3 +1,13 @@
+2016-03-17  Brent Fulgham  <bfulgham@apple.com>
+
+        Some media tests are flaky.
+        https://bugs.webkit.org/show_bug.cgi?id=155614
+
+        Reviewed by Eric Carlson.
+
+        * html/track/TextTrack.cpp:
+        (WebCore::TextTrack::~TextTrack):
+
 2016-03-17  Brady Eidson  <beidson@apple.com>
 
         Don't try to restore deleted MemoryIndexes if their owning object store is not restored.
index e79daad..123d16c 100644 (file)
@@ -136,11 +136,11 @@ TextTrack::~TextTrack()
             m_client->textTrackRemoveCues(this, m_cues.get());
 
         for (size_t i = 0; i < m_cues->length(); ++i)
-            m_cues->item(i)->setTrack(0);
-        if (m_regions) {
-            for (size_t i = 0; i < m_regions->length(); ++i)
-                m_regions->item(i)->setTrack(0);
-        }
+            m_cues->item(i)->setTrack(nullptr);
+    }
+    if (m_regions) {
+        for (size_t i = 0; i < m_regions->length(); ++i)
+            m_regions->item(i)->setTrack(nullptr);
     }
     clearClient();
 }