Index: Source/core/html/track/LoadableTextTrack.cpp |
diff --git a/Source/core/html/track/LoadableTextTrack.cpp b/Source/core/html/track/LoadableTextTrack.cpp |
index 66e6b8dcb9778bc87526cfdd89fb5cbc753c020b..7af955acc9fba1923ec5c9b04202bac107b6c3d8 100644 |
--- a/Source/core/html/track/LoadableTextTrack.cpp |
+++ b/Source/core/html/track/LoadableTextTrack.cpp |
@@ -111,7 +111,7 @@ void LoadableTextTrack::newCuesAvailable(TextTrackLoader* loader) |
{ |
ASSERT_UNUSED(loader, m_loader == loader); |
- Vector<RefPtr<VTTCue> > newCues; |
+ WillBeHeapVector<RefPtrWillBeMember<VTTCue> > newCues; |
m_loader->getNewCues(newCues); |
if (!m_cues) |
@@ -119,7 +119,7 @@ void LoadableTextTrack::newCuesAvailable(TextTrackLoader* loader) |
for (size_t i = 0; i < newCues.size(); ++i) { |
newCues[i]->setTrack(this); |
- m_cues->add(newCues[i]); |
+ m_cues->add(newCues[i].release()); |
} |
if (mediaElement()) |
@@ -140,7 +140,7 @@ void LoadableTextTrack::newRegionsAvailable(TextTrackLoader* loader) |
{ |
ASSERT_UNUSED(loader, m_loader == loader); |
- Vector<RefPtr<VTTRegion> > newRegions; |
+ WillBeHeapVector<RefPtrWillBeMember<VTTRegion> > newRegions; |
m_loader->getNewRegions(newRegions); |
for (size_t i = 0; i < newRegions.size(); ++i) { |
@@ -167,4 +167,10 @@ size_t LoadableTextTrack::trackElementIndex() |
return 0; |
} |
+void LoadableTextTrack::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_loader); |
+ TextTrack::trace(visitor); |
+} |
+ |
} // namespace WebCore |