diff options
Diffstat (limited to 'pc/test/fake_video_track_source.h')
-rw-r--r-- | pc/test/fake_video_track_source.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pc/test/fake_video_track_source.h b/pc/test/fake_video_track_source.h index d6562313c5..2042c39175 100644 --- a/pc/test/fake_video_track_source.h +++ b/pc/test/fake_video_track_source.h @@ -22,7 +22,7 @@ namespace webrtc { class FakeVideoTrackSource : public VideoTrackSource { public: static rtc::scoped_refptr<FakeVideoTrackSource> Create(bool is_screencast) { - return new rtc::RefCountedObject<FakeVideoTrackSource>(is_screencast); + return rtc::make_ref_counted<FakeVideoTrackSource>(is_screencast); } static rtc::scoped_refptr<FakeVideoTrackSource> Create() { |