
Use rtc::scoped_refptr to keep object pointers valid Bug: webrtc:13993 Change-Id: Iffb6bf47e97606bfa3c2e9d8814a56cf509abbd6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/259940 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36645}