| Index: talk/app/webrtc/remoteaudiosource.cc
|
| diff --git a/talk/app/webrtc/remoteaudiosource.cc b/talk/app/webrtc/remoteaudiosource.cc
|
| index e904dd91925e48654832a5bb769f2e971c8b513e..45e2e9ec8af610ed4f40e2e4ffe1b3405641c7d0 100644
|
| --- a/talk/app/webrtc/remoteaudiosource.cc
|
| +++ b/talk/app/webrtc/remoteaudiosource.cc
|
| @@ -96,8 +96,7 @@ void RemoteAudioSource::Initialize(uint32_t ssrc,
|
| // To make sure we always get notified when the provider goes out of scope,
|
| // we register for callbacks here and not on demand in AddSink.
|
| if (provider) { // May be null in tests.
|
| - provider->SetRawAudioSink(
|
| - ssrc, rtc::scoped_ptr<AudioSinkInterface>(new Sink(this)));
|
| + provider->SetRawAudioSink(ssrc, new rtc::RefCountedObject<Sink>(this));
|
| }
|
| }
|
|
|
|
|