aboutsummaryrefslogtreecommitdiff
path: root/test/pc/e2e/stats_poller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/pc/e2e/stats_poller.cc')
-rw-r--r--test/pc/e2e/stats_poller.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pc/e2e/stats_poller.cc b/test/pc/e2e/stats_poller.cc
index e6973e6af1..5f1424cd29 100644
--- a/test/pc/e2e/stats_poller.cc
+++ b/test/pc/e2e/stats_poller.cc
@@ -31,7 +31,7 @@ void InternalStatsObserver::OnStatsDelivered(
StatsPoller::StatsPoller(std::vector<StatsObserverInterface*> observers,
std::map<std::string, TestPeer*> peers) {
for (auto& peer : peers) {
- pollers_.push_back(new rtc::RefCountedObject<InternalStatsObserver>(
+ pollers_.push_back(rtc::make_ref_counted<InternalStatsObserver>(
peer.first, peer.second, observers));
}
}