Fix crash in peerconnection_client example code
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}
This commit is contained in:
parent
8b749e462b
commit
901736fa3c
1
AUTHORS
1
AUTHORS
@ -116,6 +116,7 @@ Victor Costan <costan@gmail.com>
|
||||
Vladimir Beloborodov <VladimirTechMan@gmail.com>
|
||||
Xiaohong Xu <freemine@yeah.net>
|
||||
Xiaolei Yu <dreifachstein@gmail.com>
|
||||
Xinchao Tian <tianxinchao@360.cn>
|
||||
Yaowen Guo <albertguo88@gmail.com>
|
||||
Yura Yaroshevich <yura.yaroshevich@gmail.com>
|
||||
Yuriy Pavlyshak <yuriy@appear.in>
|
||||
|
||||
@ -58,7 +58,7 @@ const char kSessionDescriptionSdpName[] = "sdp";
|
||||
class DummySetSessionDescriptionObserver
|
||||
: public webrtc::SetSessionDescriptionObserver {
|
||||
public:
|
||||
static DummySetSessionDescriptionObserver* Create() {
|
||||
static rtc::scoped_refptr<DummySetSessionDescriptionObserver> Create() {
|
||||
return rtc::make_ref_counted<DummySetSessionDescriptionObserver>();
|
||||
}
|
||||
virtual void OnSuccess() { RTC_LOG(LS_INFO) << __FUNCTION__; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user