Replace `new rtc::RefCountedObject` with `rtc::make_ref_counted` in a few files

Bug: webrtc:12701
Change-Id: Ie50225374f811424faf20caf4cf454b2fd1c4dc9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215930
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33818}
diff --git a/common_video/video_frame_buffer_pool.cc b/common_video/video_frame_buffer_pool.cc
index 6df240d..d225370 100644
--- a/common_video/video_frame_buffer_pool.cc
+++ b/common_video/video_frame_buffer_pool.cc
@@ -107,7 +107,7 @@
     return nullptr;
   // Allocate new buffer.
   rtc::scoped_refptr<I420Buffer> buffer =
-      new rtc::RefCountedObject<I420Buffer>(width, height);
+      rtc::make_ref_counted<I420Buffer>(width, height);
 
   if (zero_initialize_)
     buffer->InitializeData();
@@ -138,7 +138,7 @@
     return nullptr;
   // Allocate new buffer.
   rtc::scoped_refptr<NV12Buffer> buffer =
-      new rtc::RefCountedObject<NV12Buffer>(width, height);
+      rtc::make_ref_counted<NV12Buffer>(width, height);
 
   if (zero_initialize_)
     buffer->InitializeData();